#20237A#20237A

#20237A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.144 H 273.3°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#20237A
RGBrgb(32, 35, 122)
HSLhsl(238, 58%, 30%)
HSVhsv(238, 74%, 48%)
CMYKcmyk(73.8%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.70, 29.77, -49.67)
CIE-LCHlch(19.70, 57.91, 300.94°)
OKLaboklab(32.01% 0.0082 -0.1436)
OKLCHoklch(32.01% 0.144 273.3)
XYZxyz(4.7084, 2.9138, 18.7229)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20237A #7A7720
analogous
#20507A #20237A #4A207A
triadic
#20237A #7A2023 #237A20
tetradic
#20237A #7A2050 #7A7720 #207A4A
square
#20237A #7A2050 #7A7720 #207A4A
split-complementary
#20237A #7A4A20 #507A20
monochromatic
#070719 #13154A #20237A #2D31AA #464ACE

Accessibility & contrast

On white

13.27
#20237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20237A
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20237A#FFFFFF#000000##FFFFFF
##20237A1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #20237a;
/* rgb */ color: rgb(32, 35, 122);
/* oklch */ color: oklch(32.0% 0.144 273.3);
Tailwind
colors: {
  custom: {
    50: '#6a5ea1',
    500: '#20237a',
    950: '#000000',
  },
}
SCSS
$custom: #20237a;
$custom-light: #6a5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#20237a",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 238,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.14384,
    "h": 273.3
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#20237A
secondary
#ADAA49
accent
#DC46E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #20237A

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

Preview Lab → · Contrast checker → · Palette generator →

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