#242B8B#242B8B

#242B8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.156 H 272.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#242B8B
RGBrgb(36, 43, 139)
HSLhsl(236, 59%, 34%)
HSVhsv(236, 74%, 55%)
CMYKcmyk(74.1%, 69.1%, 0%, 45.5%)
CIE-LABlab(23.56, 31.30, -54.03)
CIE-LCHlch(23.56, 62.44, 300.08°)
OKLaboklab(35.38% 0.0058 -0.1562)
OKLCHoklch(35.38% 0.156 272.1)
XYZxyz(6.2501, 3.9663, 24.8573)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242B8B #8B8424
analogous
#245F8B #242B8B #51248B
triadic
#242B8B #8B242B #2B8B24
tetradic
#242B8B #8B245F #8B8424 #248B51
square
#242B8B #8B245F #8B8424 #248B51
split-complementary
#242B8B #8B5124 #5F8B24
monochromatic
#0B0D2A #171C5A #242B8B #313ABC #565FD3

Accessibility & contrast

On white

11.71
#242B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#242B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242B8B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242B8B#FFFFFF#000000##FFFFFF
##242B8B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242b8b;
/* rgb */ color: rgb(36, 43, 139);
/* oklch */ color: oklch(35.4% 0.156 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f64ae',
    500: '#242b8b',
    950: '#000000',
  },
}
SCSS
$custom: #242b8b;
$custom-light: #6f64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#242b8b",
  "rgb": {
    "r": 36,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 235.922,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35383,
    "c": 0.15632,
    "h": 272.1
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#242B8B
secondary
#B7B153
accent
#D746E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #242B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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