#20237D#20237D

#20237D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.148 H 273.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#20237D
RGBrgb(32, 35, 125)
HSLhsl(238, 59%, 31%)
HSVhsv(238, 74%, 49%)
CMYKcmyk(74.4%, 72%, 0%, 51%)
CIE-LABlab(20.00, 30.88, -51.08)
CIE-LCHlch(20.00, 59.69, 301.15°)
OKLaboklab(32.32% 0.0078 -0.1477)
OKLCHoklch(32.32% 0.148 273)
XYZxyz(4.8971, 2.9893, 19.7170)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20237D #7D7A20
analogous
#20517D #20237D #4B207D
triadic
#20237D #7D2023 #237D20
tetradic
#20237D #7D2051 #7D7A20 #207D4B
square
#20237D #7D2051 #7D7A20 #207D4B
split-complementary
#20237D #7D4B20 #517D20
monochromatic
#07081C #14154C #20237D #2C31AE #474CD0

Accessibility & contrast

On white

13.14
#20237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#20237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20237D
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20237D#FFFFFF#000000##FFFFFF
##20237D1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20237d;
/* rgb */ color: rgb(32, 35, 125);
/* oklch */ color: oklch(32.3% 0.148 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b5ea4',
    500: '#20237d',
    950: '#000000',
  },
}
SCSS
$custom: #20237d;
$custom-light: #6b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#20237d",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 238.065,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32319,
    "c": 0.14792,
    "h": 273
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#20237D
secondary
#B0AD49
accent
#DD45E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20237D

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

Preview Lab → · Contrast checker → · Palette generator →

#20237D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva