#242D8D#242D8D

#242D8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.157 H 271.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#242D8D
RGBrgb(36, 45, 141)
HSLhsl(235, 59%, 35%)
HSVhsv(235, 74%, 55%)
CMYKcmyk(74.5%, 68.1%, 0%, 44.7%)
CIE-LABlab(24.24, 30.73, -54.16)
CIE-LCHlch(24.24, 62.27, 299.57°)
OKLaboklab(35.94% 0.0043 -0.1566)
OKLCHoklch(35.94% 0.157 271.6)
XYZxyz(6.4720, 4.1743, 25.6588)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D8D #8D8424
analogous
#24628D #242D8D #50248D
triadic
#242D8D #8D242D #2D8D24
tetradic
#242D8D #8D2462 #8D8424 #248D50
square
#242D8D #8D2462 #8D8424 #248D50
split-complementary
#242D8D #8D5024 #628D24
monochromatic
#0B0E2B #181D5C #242D8D #303DBE #5762D4

Accessibility & contrast

On white

11.44
#242D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#242D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D8D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D8D#FFFFFF#000000##FFFFFF
##242D8D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242d8d;
/* rgb */ color: rgb(36, 45, 141);
/* oklch */ color: oklch(35.9% 0.157 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f66af',
    500: '#242d8d',
    950: '#000000',
  },
}
SCSS
$custom: #242d8d;
$custom-light: #6f66af;
$custom-dark: #000000;
JSON
{
  "hex": "#242d8d",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 234.857,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35936,
    "c": 0.15664,
    "h": 271.6
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#242D8D
secondary
#B8B054
accent
#D545E3
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #242D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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