#242D8E#242D8E

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

Color values

HEX#242D8E
RGBrgb(36, 45, 142)
HSLhsl(235, 60%, 35%)
HSVhsv(235, 75%, 56%)
CMYKcmyk(74.6%, 68.3%, 0%, 44.3%)
CIE-LABlab(24.34, 31.10, -54.62)
CIE-LCHlch(24.34, 62.85, 299.66°)
OKLaboklab(36.04% 0.0042 -0.1579)
OKLCHoklch(36.04% 0.158 271.5)
XYZxyz(6.5468, 4.2042, 26.0524)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D8E #8E8524
analogous
#24628E #242D8E #50248E
triadic
#242D8E #8E242D #2D8E24
tetradic
#242D8E #8E2462 #8E8524 #248E50
square
#242D8E #8E2462 #8E8524 #248E50
split-complementary
#242D8E #8E5024 #628E24
monochromatic
#0B0E2C #181E5D #242D8E #303CBF #5862D5

Accessibility & contrast

On white

11.41
#242D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#242D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D8E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D8E#FFFFFF#000000##FFFFFF
##242D8E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242d8e;
/* rgb */ color: rgb(36, 45, 142);
/* oklch */ color: oklch(36.0% 0.158 271.5);
Tailwind
colors: {
  custom: {
    50: '#7066b0',
    500: '#242d8e',
    950: '#000000',
  },
}
SCSS
$custom: #242d8e;
$custom-light: #7066b0;
$custom-dark: #000000;
JSON
{
  "hex": "#242d8e",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 234.906,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36035,
    "c": 0.158,
    "h": 271.5
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#242D8E
secondary
#B9B055
accent
#D545E3
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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