#242D7B#242D7B

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

Color values

HEX#242D7B
RGBrgb(36, 45, 123)
HSLhsl(234, 55%, 31%)
HSVhsv(234, 71%, 48%)
CMYKcmyk(70.7%, 63.4%, 0%, 51.8%)
CIE-LABlab(22.59, 23.97, -45.56)
CIE-LCHlch(22.59, 51.48, 297.74°)
OKLaboklab(34.22% 0.0054 -0.1314)
OKLCHoklch(34.22% 0.132 272.3)
XYZxyz(5.2399, 3.6814, 19.1695)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D7B #7B7224
analogous
#24587B #242D7B #46247B
triadic
#242D7B #7B242D #2D7B24
tetradic
#242D7B #7B2458 #7B7224 #247B46
square
#242D7B #7B2458 #7B7224 #247B46
split-complementary
#242D7B #7B4624 #587B24
monochromatic
#080A1C #161C4C #242D7B #323EAA #4E5BCB

Accessibility & contrast

On white

12.09
#242D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#242D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D7B
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D7B#FFFFFF#000000##FFFFFF
##242D7B1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #242d7b;
/* rgb */ color: rgb(36, 45, 123);
/* oklch */ color: oklch(34.2% 0.132 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b65a2',
    500: '#242d7b',
    950: '#000000',
  },
}
SCSS
$custom: #242d7b;
$custom-light: #6b65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#242d7b",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 233.793,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34217,
    "c": 0.1315,
    "h": 272.3
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#242D7B
secondary
#ADA34D
accent
#CF4ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #242D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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