#242D8A#242D8A

#242D8A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.153 H 271.7°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#242D8A
RGBrgb(36, 45, 138)
HSLhsl(235, 59%, 34%)
HSVhsv(235, 74%, 54%)
CMYKcmyk(73.9%, 67.4%, 0%, 45.9%)
CIE-LABlab(23.95, 29.62, -52.76)
CIE-LCHlch(23.95, 60.50, 299.31°)
OKLaboklab(35.64% 0.0045 -0.1525)
OKLCHoklch(35.64% 0.153 271.7)
XYZxyz(6.2518, 4.0862, 24.4991)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242D8A #8A8124
analogous
#24608A #242D8A #4E248A
triadic
#242D8A #8A242D #2D8A24
tetradic
#242D8A #8A2460 #8A8124 #248A4E
square
#242D8A #8A2460 #8A8124 #248A4E
split-complementary
#242D8A #8A4E24 #608A24
monochromatic
#0B0D29 #171D59 #242D8A #313DBB #5661D3

Accessibility & contrast

On white

11.55
#242D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#242D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242D8A
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242D8A#FFFFFF#000000##FFFFFF
##242D8A1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #242d8a;
/* rgb */ color: rgb(36, 45, 138);
/* oklch */ color: oklch(35.6% 0.153 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f66ad',
    500: '#242d8a',
    950: '#000000',
  },
}
SCSS
$custom: #242d8a;
$custom-light: #6f66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#242d8a",
  "rgb": {
    "r": 36,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 234.706,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35641,
    "c": 0.15256,
    "h": 271.7
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#242D8A
secondary
#B7AE53
accent
#D446E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #242D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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