#20237C#20237C

#20237C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.147 H 273.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#20237C
RGBrgb(32, 35, 124)
HSLhsl(238, 59%, 31%)
HSVhsv(238, 74%, 49%)
CMYKcmyk(74.2%, 71.8%, 0%, 51.4%)
CIE-LABlab(19.90, 30.51, -50.61)
CIE-LCHlch(19.90, 59.10, 301.08°)
OKLaboklab(32.21% 0.008 -0.1463)
OKLCHoklch(32.21% 0.147 273.1)
XYZxyz(4.8336, 2.9639, 19.3822)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20237C #7C7920
analogous
#20517C #20237C #4B207C
triadic
#20237C #7C2023 #237C20
tetradic
#20237C #7C2051 #7C7920 #207C4B
square
#20237C #7C2051 #7C7920 #207C4B
split-complementary
#20237C #7C4B20 #517C20
monochromatic
#07081B #13154B #20237C #2D31AD #474BCF

Accessibility & contrast

On white

13.18
#20237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20237C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20237C#FFFFFF#000000##FFFFFF
##20237C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20237c;
/* rgb */ color: rgb(32, 35, 124);
/* oklch */ color: oklch(32.2% 0.147 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ea3',
    500: '#20237c',
    950: '#000000',
  },
}
SCSS
$custom: #20237c;
$custom-light: #6b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#20237c",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 238.043,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32214,
    "c": 0.14656,
    "h": 273.1
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#20237C
secondary
#AFAC49
accent
#DD46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20237C

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

Preview Lab → · Contrast checker → · Palette generator →

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