#20236B#20236B

#20236B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.123 H 274.6°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#20236B
RGBrgb(32, 35, 107)
HSLhsl(238, 54%, 27%)
HSVhsv(238, 70%, 42%)
CMYKcmyk(70.1%, 67.3%, 0%, 58%)
CIE-LABlab(18.23, 24.15, -42.40)
CIE-LCHlch(18.23, 48.80, 299.67°)
OKLaboklab(30.5% 0.0098 -0.1223)
OKLCHoklch(30.5% 0.123 274.6)
XYZxyz(3.8497, 2.5703, 14.2003)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20236B #6B6820
analogous
#20496B #20236B #43206B
triadic
#20236B #6B2023 #236B20
tetradic
#20236B #6B2049 #6B6820 #206B43
square
#20236B #6B2049 #6B6820 #206B43
split-complementary
#20236B #6B4320 #496B20
monochromatic
#070818 #12143C #20236B #2E329A #4045C6

Accessibility & contrast

On white

13.87
#20236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#20236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20236B
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20236B#FFFFFF#000000##FFFFFF
##20236B1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#00296A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #20236b;
/* rgb */ color: rgb(32, 35, 107);
/* oklch */ color: oklch(30.5% 0.123 274.6);
Tailwind
colors: {
  custom: {
    50: '#665e96',
    500: '#20236b',
    950: '#000000',
  },
}
SCSS
$custom: #20236b;
$custom-light: #665e96;
$custom-dark: #000000;
JSON
{
  "hex": "#20236b",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 237.6,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30495,
    "c": 0.1227,
    "h": 274.6
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#20236B
secondary
#9F9B48
accent
#D74ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20236B

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

Preview Lab → · Contrast checker → · Palette generator →

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