#242F8B#242F8B

#242F8B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.151 H 271.2°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#242F8B
RGBrgb(36, 47, 139)
HSLhsl(234, 59%, 34%)
HSVhsv(234, 74%, 55%)
CMYKcmyk(74.1%, 66.2%, 0%, 45.5%)
CIE-LABlab(24.55, 28.66, -52.41)
CIE-LCHlch(24.55, 59.73, 298.68°)
OKLaboklab(36.1% 0.0031 -0.1514)
OKLCHoklch(36.1% 0.151 271.2)
XYZxyz(6.4027, 4.2715, 24.9081)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F8B #8B8024
analogous
#24638B #242F8B #4D248B
triadic
#242F8B #8B242F #2F8B24
tetradic
#242F8B #8B2463 #8B8024 #248B4D
square
#242F8B #8B2463 #8B8024 #248B4D
split-complementary
#242F8B #8B4D24 #638B24
monochromatic
#0B0E2A #171F5A #242F8B #313FBC #5663D3

Accessibility & contrast

On white

11.32
#242F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242F8B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F8B#FFFFFF#000000##FFFFFF
##242F8B1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242f8b;
/* rgb */ color: rgb(36, 47, 139);
/* oklch */ color: oklch(36.1% 0.151 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f67ae',
    500: '#242f8b',
    950: '#000000',
  },
}
SCSS
$custom: #242f8b;
$custom-light: #6f67ae;
$custom-dark: #000000;
JSON
{
  "hex": "#242f8b",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 233.592,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36105,
    "c": 0.15147,
    "h": 271.2
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#242F8B
secondary
#B7AD53
accent
#D146E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #242F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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