#242F8A#242F8A

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

Color values

HEX#242F8A
RGBrgb(36, 47, 138)
HSLhsl(234, 59%, 34%)
HSVhsv(234, 74%, 54%)
CMYKcmyk(73.9%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.46, 28.29, -51.93)
CIE-LCHlch(24.46, 59.14, 298.58°)
OKLaboklab(36.01% 0.0031 -0.1501)
OKLCHoklch(36.01% 0.15 271.2)
XYZxyz(6.3300, 4.2424, 24.5251)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F8A #8A7F24
analogous
#24628A #242F8A #4C248A
triadic
#242F8A #8A242F #2F8A24
tetradic
#242F8A #8A2462 #8A7F24 #248A4C
square
#242F8A #8A2462 #8A7F24 #248A4C
split-complementary
#242F8A #8A4C24 #628A24
monochromatic
#0B0E29 #171E59 #242F8A #3140BB #5663D3

Accessibility & contrast

On white

11.36
#242F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242F8A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F8A#FFFFFF#000000##FFFFFF
##242F8A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242f8a;
/* rgb */ color: rgb(36, 47, 138);
/* oklch */ color: oklch(36.0% 0.150 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e67ad',
    500: '#242f8a',
    950: '#000000',
  },
}
SCSS
$custom: #242f8a;
$custom-light: #6e67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#242f8a",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 233.529,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36009,
    "c": 0.15009,
    "h": 271.2
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #242F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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