#242F7B#242F7B

#242F7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.6% C 0.129 H 271.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#242F7B
RGBrgb(36, 47, 123)
HSLhsl(232, 55%, 31%)
HSVhsv(232, 71%, 48%)
CMYKcmyk(70.7%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.13, 22.58, -44.68)
CIE-LCHlch(23.13, 50.07, 296.81°)
OKLaboklab(34.62% 0.0036 -0.1288)
OKLCHoklch(34.62% 0.129 271.6)
XYZxyz(5.3180, 3.8377, 19.1955)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F7B #7B7024
analogous
#245A7B #242F7B #44247B
triadic
#242F7B #7B242F #2F7B24
tetradic
#242F7B #7B245A #7B7024 #247B44
square
#242F7B #7B245A #7B7024 #247B44
split-complementary
#242F7B #7B4424 #5A7B24
monochromatic
#080B1C #161D4C #242F7B #3241AA #4E5ECB

Accessibility & contrast

On white

11.88
#242F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#242F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F7B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F7B#FFFFFF#000000##FFFFFF
##242F7B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242f7b;
/* rgb */ color: rgb(36, 47, 123);
/* oklch */ color: oklch(34.6% 0.129 271.6);
Tailwind
colors: {
  custom: {
    50: '#6b67a2',
    500: '#242f7b',
    950: '#000000',
  },
}
SCSS
$custom: #242f7b;
$custom-light: #6b67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#242f7b",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 232.414,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34616,
    "c": 0.12884,
    "h": 271.6
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#242F7B
secondary
#ADA14D
accent
#CB4ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #242F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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