#242F87#242F87

#242F87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.146 H 271.3°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#242F87
RGBrgb(36, 47, 135)
HSLhsl(233, 58%, 34%)
HSVhsv(233, 73%, 53%)
CMYKcmyk(73.3%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.18, 27.16, -50.51)
CIE-LCHlch(24.18, 57.35, 298.26°)
OKLaboklab(35.72% 0.0033 -0.1459)
OKLCHoklch(35.72% 0.146 271.3)
XYZxyz(6.1158, 4.1568, 23.3970)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F87 #877C24
analogous
#246087 #242F87 #4A2487
triadic
#242F87 #87242F #2F8724
tetradic
#242F87 #872460 #877C24 #24874A
square
#242F87 #872460 #877C24 #24874A
split-complementary
#242F87 #874A24 #608724
monochromatic
#0A0D26 #171E57 #242F87 #3140B7 #5462D1

Accessibility & contrast

On white

11.47
#242F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#242F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F87
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F87#FFFFFF#000000##FFFFFF
##242F871.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242f87;
/* rgb */ color: rgb(36, 47, 135);
/* oklch */ color: oklch(35.7% 0.146 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e67ab',
    500: '#242f87',
    950: '#000000',
  },
}
SCSS
$custom: #242f87;
$custom-light: #6e67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#242f87",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 233.333,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35723,
    "c": 0.14594,
    "h": 271.3
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#242F87
secondary
#B5AA51
accent
#D047E1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #242F87

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

Preview Lab → · Contrast checker → · Palette generator →

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