#242FA8#242FA8

#242FA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.190 H 270.1°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#242FA8
RGBrgb(36, 47, 168)
HSLhsl(235, 65%, 40%)
HSVhsv(235, 79%, 66%)
CMYKcmyk(78.6%, 72%, 0%, 34.1%)
CIE-LABlab(27.39, 39.24, -65.48)
CIE-LCHlch(27.39, 76.34, 300.93°)
OKLaboklab(39.03% 0.0002 -0.1896)
OKLCHoklch(39.03% 0.19 270.1)
XYZxyz(8.8095, 5.2343, 37.5842)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242FA8 #A89D24
analogous
#2471A8 #242FA8 #5B24A8
triadic
#242FA8 #A8242F #2FA824
tetradic
#242FA8 #A82471 #A89D24 #24A85B
square
#242FA8 #A82471 #A89D24 #24A85B
split-complementary
#242FA8 #A85B24 #71A824
monochromatic
#0E1343 #192176 #242FA8 #3543D4 #6872DF

Accessibility & contrast

On white

10.26
#242FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#242FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242FA8
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242FA8#FFFFFF#000000##FFFFFF
##242FA81.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #242fa8;
/* rgb */ color: rgb(36, 47, 168);
/* oklch */ color: oklch(39.0% 0.190 270.1);
Tailwind
colors: {
  custom: {
    50: '#7668c3',
    500: '#242fa8',
    950: '#000000',
  },
}
SCSS
$custom: #242fa8;
$custom-light: #7668c3;
$custom-dark: #000000;
JSON
{
  "hex": "#242fa8",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 235,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.39027,
    "c": 0.18963,
    "h": 270.1
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#242FA8
secondary
#C4BC63
accent
#DA40E8
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #242FA8

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#242FA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva