#242E7D#242E7D

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

Color values

HEX#242E7D
RGBrgb(36, 46, 125)
HSLhsl(233, 55%, 32%)
HSVhsv(233, 71%, 49%)
CMYKcmyk(71.2%, 63.2%, 0%, 51%)
CIE-LABlab(23.03, 24.04, -46.11)
CIE-LCHlch(23.03, 52.00, 297.54°)
OKLaboklab(34.6% 0.0045 -0.133)
OKLCHoklch(34.6% 0.133 271.9)
XYZxyz(5.4050, 3.8092, 19.8485)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242E7D #7D7324
analogous
#245B7D #242E7D #47247D
triadic
#242E7D #7D242E #2E7D24
tetradic
#242E7D #7D245B #7D7324 #247D47
square
#242E7D #7D245B #7D7324 #247D47
split-complementary
#242E7D #7D4724 #5B7D24
monochromatic
#090B1E #161D4D #242E7D #323FAD #4F5DCC

Accessibility & contrast

On white

11.92
#242E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#242E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242E7D
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242E7D#FFFFFF#000000##FFFFFF
##242E7D1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242e7d;
/* rgb */ color: rgb(36, 46, 125);
/* oklch */ color: oklch(34.6% 0.133 271.9);
Tailwind
colors: {
  custom: {
    50: '#6b66a3',
    500: '#242e7d',
    950: '#000000',
  },
}
SCSS
$custom: #242e7d;
$custom-light: #6b66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#242e7d",
  "rgb": {
    "r": 36,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 233.258,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34598,
    "c": 0.13306,
    "h": 271.9
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#242E7D
secondary
#AFA44D
accent
#CE49DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #242E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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