#20238C#20238C

#20238C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.168 H 271.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#20238C
RGBrgb(32, 35, 140)
HSLhsl(238, 63%, 34%)
HSVhsv(238, 77%, 55%)
CMYKcmyk(77.1%, 75%, 0%, 45.1%)
CIE-LABlab(21.59, 36.28, -57.91)
CIE-LCHlch(21.59, 68.34, 302.07°)
OKLaboklab(33.93% 0.0055 -0.1676)
OKLCHoklch(33.93% 0.168 271.9)
XYZxyz(5.9287, 3.4020, 25.1500)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20238C #8C8920
analogous
#20598C #20238C #53208C
triadic
#20238C #8C2023 #238C20
tetradic
#20238C #8C2059 #8C8920 #208C53
square
#20238C #8C2059 #8C8920 #208C53
split-complementary
#20238C #8C5320 #598C20
monochromatic
#090A28 #15175A #20238C #2B2FBE #5053D7

Accessibility & contrast

On white

12.50
#20238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#20238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20238C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20238C#FFFFFF#000000##FFFFFF
##20238C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20238c;
/* rgb */ color: rgb(32, 35, 140);
/* oklch */ color: oklch(33.9% 0.168 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f5faf',
    500: '#20238c',
    950: '#000000',
  },
}
SCSS
$custom: #20238c;
$custom-light: #6f5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#20238c",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 238.333,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33931,
    "c": 0.16771,
    "h": 271.9
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#20238C
secondary
#BAB74E
accent
#E142E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #20238C

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

Preview Lab → · Contrast checker → · Palette generator →

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