#20238E#20238E

#20238E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.170 H 271.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#20238E
RGBrgb(32, 35, 142)
HSLhsl(238, 63%, 34%)
HSVhsv(238, 77%, 56%)
CMYKcmyk(77.5%, 75.4%, 0%, 44.3%)
CIE-LABlab(21.80, 36.99, -58.79)
CIE-LCHlch(21.80, 69.46, 302.17°)
OKLaboklab(34.15% 0.0052 -0.1702)
OKLCHoklch(34.15% 0.17 271.7)
XYZxyz(6.0775, 3.4615, 25.9338)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20238E #8E8B20
analogous
#205A8E #20238E #54208E
triadic
#20238E #8E2023 #238E20
tetradic
#20238E #8E205A #8E8B20 #208E54
square
#20238E #8E205A #8E8B20 #208E54
split-complementary
#20238E #8E5420 #5A8E20
monochromatic
#090A2A #15175C #20238E #2B2FC0 #5154D8

Accessibility & contrast

On white

12.41
#20238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#20238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20238E
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20238E#FFFFFF#000000##FFFFFF
##20238E1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20238e;
/* rgb */ color: rgb(32, 35, 142);
/* oklch */ color: oklch(34.2% 0.170 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f5fb0',
    500: '#20238e',
    950: '#000000',
  },
}
SCSS
$custom: #20238e;
$custom-light: #6f5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#20238e",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 238.364,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34151,
    "c": 0.17027,
    "h": 271.7
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#20238E
secondary
#BBB84F
accent
#E242E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20238E

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

Preview Lab → · Contrast checker → · Palette generator →

#20238E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva