#242A8D#242A8D

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

Color values

HEX#242A8D
RGBrgb(36, 42, 141)
HSLhsl(237, 59%, 35%)
HSVhsv(237, 74%, 55%)
CMYKcmyk(74.5%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.52, 32.68, -55.34)
CIE-LCHlch(23.52, 64.27, 300.56°)
OKLaboklab(35.41% 0.0062 -0.1601)
OKLCHoklch(35.41% 0.16 272.2)
XYZxyz(6.3616, 3.9534, 25.6220)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242A8D #8D8724
analogous
#245F8D #242A8D #52248D
triadic
#242A8D #8D242A #2A8D24
tetradic
#242A8D #8D245F #8D8724 #248D52
square
#242A8D #8D245F #8D8724 #248D52
split-complementary
#242A8D #8D5224 #5F8D24
monochromatic
#0B0D2B #181B5C #242A8D #3039BE #575ED4

Accessibility & contrast

On white

11.73
#242A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #242A8D
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242A8D#FFFFFF#000000##FFFFFF
##242A8D1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #242a8d;
/* rgb */ color: rgb(36, 42, 141);
/* oklch */ color: oklch(35.4% 0.160 272.2);
Tailwind
colors: {
  custom: {
    50: '#7064af',
    500: '#242a8d',
    950: '#000000',
  },
}
SCSS
$custom: #242a8d;
$custom-light: #7064af;
$custom-dark: #000000;
JSON
{
  "hex": "#242a8d",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 236.571,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35412,
    "c": 0.16018,
    "h": 272.2
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#242A8D
secondary
#B8B354
accent
#DA45E3
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #242A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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