#242D7D#242D7D

#242D7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.134 H 272.3°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#242D7D
RGBrgb(36, 45, 125)
HSLhsl(234, 55%, 32%)
HSVhsv(234, 71%, 49%)
CMYKcmyk(71.2%, 64%, 0%, 51%)
CIE-LABlab(22.76, 24.73, -46.54)
CIE-LCHlch(22.76, 52.70, 297.98°)
OKLaboklab(34.4% 0.0053 -0.1343)
OKLCHoklch(34.4% 0.134 272.3)
XYZxyz(5.3664, 3.7320, 19.8356)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D7D #7D7424
analogous
#245A7D #242D7D #48247D
triadic
#242D7D #7D242D #2D7D24
tetradic
#242D7D #7D245A #7D7424 #247D48
square
#242D7D #7D245A #7D7424 #247D48
split-complementary
#242D7D #7D4824 #5A7D24
monochromatic
#090B1E #161C4D #242D7D #323EAD #4F5CCC

Accessibility & contrast

On white

12.02
#242D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#242D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D7D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D7D#FFFFFF#000000##FFFFFF
##242D7D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242d7d;
/* rgb */ color: rgb(36, 45, 125);
/* oklch */ color: oklch(34.4% 0.134 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b66a3',
    500: '#242d7d',
    950: '#000000',
  },
}
SCSS
$custom: #242d7d;
$custom-light: #6b66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#242d7d",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 233.933,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34402,
    "c": 0.13437,
    "h": 272.3
  },
  "luminance": 0.03733
}

Semantic roles & 50–950 ramp

primary
#242D7D
secondary
#AFA54D
accent
#CF49DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #242D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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