#242D8F#242D8F

#242D8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.1% C 0.159 H 271.5°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#242D8F
RGBrgb(36, 45, 143)
HSLhsl(235, 60%, 35%)
HSVhsv(235, 75%, 56%)
CMYKcmyk(74.8%, 68.5%, 0%, 43.9%)
CIE-LABlab(24.43, 31.47, -55.08)
CIE-LCHlch(24.43, 63.44, 299.74°)
OKLaboklab(36.14% 0.0041 -0.1593)
OKLCHoklch(36.14% 0.159 271.5)
XYZxyz(6.6222, 4.2343, 26.4496)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D8F #8F8624
analogous
#24638F #242D8F #50248F
triadic
#242D8F #8F242D #2D8F24
tetradic
#242D8F #8F2463 #8F8624 #248F50
square
#242D8F #8F2463 #8F8624 #248F50
split-complementary
#242D8F #8F5024 #638F24
monochromatic
#0B0E2D #181E5E #242D8F #303CC0 #5863D5

Accessibility & contrast

On white

11.37
#242D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#242D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D8F
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D8F#FFFFFF#000000##FFFFFF
##242D8F1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242d8f;
/* rgb */ color: rgb(36, 45, 143);
/* oklch */ color: oklch(36.1% 0.159 271.5);
Tailwind
colors: {
  custom: {
    50: '#7066b1',
    500: '#242d8f',
    950: '#000000',
  },
}
SCSS
$custom: #242d8f;
$custom-light: #7066b1;
$custom-dark: #000000;
JSON
{
  "hex": "#242d8f",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 234.953,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36135,
    "c": 0.15934,
    "h": 271.5
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#242D8F
secondary
#B9B155
accent
#D645E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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