#242D7E#242D7E

#242D7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.136 H 272.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#242D7E
RGBrgb(36, 45, 126)
HSLhsl(234, 56%, 32%)
HSVhsv(234, 71%, 49%)
CMYKcmyk(71.4%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.85, 25.11, -47.03)
CIE-LCHlch(22.85, 53.31, 298.09°)
OKLaboklab(34.49% 0.0053 -0.1357)
OKLCHoklch(34.49% 0.136 272.2)
XYZxyz(5.4306, 3.7577, 20.1737)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D7E #7E7524
analogous
#245A7E #242D7E #48247E
triadic
#242D7E #7E242D #2D7E24
tetradic
#242D7E #7E245A #7E7524 #247E48
square
#242D7E #7E245A #7E7524 #247E48
split-complementary
#242D7E #7E4824 #5A7E24
monochromatic
#090B1F #161C4E #242D7E #323EAE #505CCD

Accessibility & contrast

On white

11.99
#242D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242D7E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D7E#FFFFFF#000000##FFFFFF
##242D7E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #242d7e;
/* rgb */ color: rgb(36, 45, 126);
/* oklch */ color: oklch(34.5% 0.136 272.2);
Tailwind
colors: {
  custom: {
    50: '#6c66a4',
    500: '#242d7e',
    950: '#000000',
  },
}
SCSS
$custom: #242d7e;
$custom-light: #6c66a4;
$custom-dark: #000000;
JSON
{
  "hex": "#242d7e",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 234,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.1358,
    "h": 272.2
  },
  "luminance": 0.03758
}

Semantic roles & 50–950 ramp

primary
#242D7E
secondary
#B0A64E
accent
#D049DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #242D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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