#242F8F#242F8F

#242F8F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.157 H 271.0°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#242F8F
RGBrgb(36, 47, 143)
HSLhsl(234, 60%, 35%)
HSVhsv(234, 75%, 56%)
CMYKcmyk(74.8%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.92, 30.16, -54.28)
CIE-LCHlch(24.92, 62.09, 299.06°)
OKLaboklab(36.49% 0.0028 -0.1569)
OKLCHoklch(36.49% 0.157 271)
XYZxyz(6.7003, 4.3906, 26.4756)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F8F #8F8424
analogous
#24648F #242F8F #4F248F
triadic
#242F8F #8F242F #2F8F24
tetradic
#242F8F #8F2464 #8F8424 #248F4F
square
#242F8F #8F2464 #8F8424 #248F4F
split-complementary
#242F8F #8F4F24 #648F24
monochromatic
#0B0F2D #181F5E #242F8F #303FC0 #5865D5

Accessibility & contrast

On white

11.18
#242F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#242F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F8F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F8F#FFFFFF#000000##FFFFFF
##242F8F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #242f8f;
/* rgb */ color: rgb(36, 47, 143);
/* oklch */ color: oklch(36.5% 0.157 271.0);
Tailwind
colors: {
  custom: {
    50: '#7067b1',
    500: '#242f8f',
    950: '#000000',
  },
}
SCSS
$custom: #242f8f;
$custom-light: #7067b1;
$custom-dark: #000000;
JSON
{
  "hex": "#242f8f",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 233.832,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36493,
    "c": 0.15694,
    "h": 271
  },
  "luminance": 0.04391
}

Semantic roles & 50–950 ramp

primary
#242F8F
secondary
#B9AF55
accent
#D345E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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