#20237F#20237F

#20237F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.151 H 272.9°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#20237F
RGBrgb(32, 35, 127)
HSLhsl(238, 60%, 31%)
HSVhsv(238, 75%, 50%)
CMYKcmyk(74.8%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.21, 31.61, -52.01)
CIE-LCHlch(20.21, 60.86, 301.29°)
OKLaboklab(32.53% 0.0075 -0.1504)
OKLCHoklch(32.53% 0.151 272.9)
XYZxyz(5.0262, 3.0409, 20.3966)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20237F #7F7C20
analogous
#20527F #20237F #4C207F
triadic
#20237F #7F2023 #237F20
tetradic
#20237F #7F2052 #7F7C20 #207F4C
square
#20237F #7F2052 #7F7C20 #207F4C
split-complementary
#20237F #7F4C20 #527F20
monochromatic
#07081D #14164E #20237F #2C30B0 #484DD1

Accessibility & contrast

On white

13.06
#20237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#20237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20237F
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20237F#FFFFFF#000000##FFFFFF
##20237F1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #20237f;
/* rgb */ color: rgb(32, 35, 127);
/* oklch */ color: oklch(32.5% 0.151 272.9);
Tailwind
colors: {
  custom: {
    50: '#6b5ea5',
    500: '#20237f',
    950: '#000000',
  },
}
SCSS
$custom: #20237f;
$custom-light: #6b5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#20237f",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 238.105,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32529,
    "c": 0.15062,
    "h": 272.9
  },
  "luminance": 0.03041
}

Semantic roles & 50–950 ramp

primary
#20237F
secondary
#B2AF49
accent
#DE45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20237F

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

Preview Lab → · Contrast checker → · Palette generator →

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