#20237B#20237B

#20237B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.145 H 273.2°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#20237B
RGBrgb(32, 35, 123)
HSLhsl(238, 59%, 30%)
HSVhsv(238, 74%, 48%)
CMYKcmyk(74%, 71.5%, 0%, 51.8%)
CIE-LABlab(19.80, 30.14, -50.14)
CIE-LCHlch(19.80, 58.51, 301.01°)
OKLaboklab(32.11% 0.0081 -0.145)
OKLCHoklch(32.11% 0.145 273.2)
XYZxyz(4.7707, 2.9387, 19.0509)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20237B #7B7820
analogous
#20507B #20237B #4A207B
triadic
#20237B #7B2023 #237B20
tetradic
#20237B #7B2050 #7B7820 #207B4A
square
#20237B #7B2050 #7B7820 #207B4A
split-complementary
#20237B #7B4A20 #507B20
monochromatic
#07071A #13154A #20237B #2D31AC #464BCF

Accessibility & contrast

On white

13.23
#20237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#20237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20237B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20237B#FFFFFF#000000##FFFFFF
##20237B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20237b;
/* rgb */ color: rgb(32, 35, 123);
/* oklch */ color: oklch(32.1% 0.145 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a5ea2',
    500: '#20237b',
    950: '#000000',
  },
}
SCSS
$custom: #20237b;
$custom-light: #6a5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#20237b",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 238.022,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3211,
    "c": 0.1452,
    "h": 273.2
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#20237B
secondary
#AEAB49
accent
#DD46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #20237B

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

Preview Lab → · Contrast checker → · Palette generator →

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