#20238A#20238A

#20238A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.165 H 272.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#20238A
RGBrgb(32, 35, 138)
HSLhsl(238, 62%, 33%)
HSVhsv(238, 77%, 54%)
CMYKcmyk(76.8%, 74.6%, 0%, 45.9%)
CIE-LABlab(21.37, 35.57, -57.02)
CIE-LCHlch(21.37, 67.20, 301.96°)
OKLaboklab(33.71% 0.0058 -0.165)
OKLCHoklch(33.71% 0.165 272)
XYZxyz(5.7826, 3.3435, 24.3804)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20238A #8A8720
analogous
#20588A #20238A #52208A
triadic
#20238A #8A2023 #238A20
tetradic
#20238A #8A2058 #8A8720 #208A52
square
#20238A #8A2058 #8A8720 #208A52
split-complementary
#20238A #8A5220 #588A20
monochromatic
#090A27 #141658 #20238A #2C30BC #4E52D6

Accessibility & contrast

On white

12.58
#20238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#20238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20238A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20238A#FFFFFF#000000##FFFFFF
##20238A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #20238a;
/* rgb */ color: rgb(32, 35, 138);
/* oklch */ color: oklch(33.7% 0.165 272.0);
Tailwind
colors: {
  custom: {
    50: '#6e5fad',
    500: '#20238a',
    950: '#000000',
  },
}
SCSS
$custom: #20238a;
$custom-light: #6e5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#20238a",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 238.302,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33712,
    "c": 0.16512,
    "h": 272
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#20238A
secondary
#B9B64D
accent
#E142E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #20238A

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

Preview Lab → · Contrast checker → · Palette generator →

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