#242D8B#242D8B

#242D8B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.154 H 271.7°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#242D8B
RGBrgb(36, 45, 139)
HSLhsl(235, 59%, 34%)
HSVhsv(235, 74%, 55%)
CMYKcmyk(74.1%, 67.6%, 0%, 45.5%)
CIE-LABlab(24.05, 29.99, -53.23)
CIE-LCHlch(24.05, 61.09, 299.40°)
OKLaboklab(35.74% 0.0044 -0.1539)
OKLCHoklch(35.74% 0.154 271.7)
XYZxyz(6.3246, 4.1153, 24.8821)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D8B #8B8224
analogous
#24618B #242D8B #4F248B
triadic
#242D8B #8B242D #2D8B24
tetradic
#242D8B #8B2461 #8B8224 #248B4F
square
#242D8B #8B2461 #8B8224 #248B4F
split-complementary
#242D8B #8B4F24 #618B24
monochromatic
#0B0E2A #171D5A #242D8B #313DBC #5661D3

Accessibility & contrast

On white

11.52
#242D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#242D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D8B
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D8B#FFFFFF#000000##FFFFFF
##242D8B1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242d8b;
/* rgb */ color: rgb(36, 45, 139);
/* oklch */ color: oklch(35.7% 0.154 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f66ae',
    500: '#242d8b',
    950: '#000000',
  },
}
SCSS
$custom: #242d8b;
$custom-light: #6f66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#242d8b",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 234.757,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.15392,
    "h": 271.7
  },
  "luminance": 0.04116
}

Semantic roles & 50–950 ramp

primary
#242D8B
secondary
#B7AF53
accent
#D446E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #242D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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