#20238B#20238B

#20238B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.166 H 271.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#20238B
RGBrgb(32, 35, 139)
HSLhsl(238, 63%, 34%)
HSVhsv(238, 77%, 55%)
CMYKcmyk(77%, 74.8%, 0%, 45.5%)
CIE-LABlab(21.48, 35.93, -57.46)
CIE-LCHlch(21.48, 67.77, 302.02°)
OKLaboklab(33.82% 0.0057 -0.1663)
OKLCHoklch(33.82% 0.166 271.9)
XYZxyz(5.8553, 3.3726, 24.7635)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20238B #8B8820
analogous
#20588B #20238B #52208B
triadic
#20238B #8B2023 #238B20
tetradic
#20238B #8B2058 #8B8820 #208B52
square
#20238B #8B2058 #8B8820 #208B52
split-complementary
#20238B #8B5220 #588B20
monochromatic
#090A28 #151659 #20238B #2B30BD #4F53D6

Accessibility & contrast

On white

12.54
#20238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20238B
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20238B#FFFFFF#000000##FFFFFF
##20238B1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20238b;
/* rgb */ color: rgb(32, 35, 139);
/* oklch */ color: oklch(33.8% 0.166 271.9);
Tailwind
colors: {
  custom: {
    50: '#6e5fae',
    500: '#20238b',
    950: '#000000',
  },
}
SCSS
$custom: #20238b;
$custom-light: #6e5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#20238b",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 238.318,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33821,
    "c": 0.16642,
    "h": 271.9
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#20238B
secondary
#BAB74D
accent
#E142E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #20238B

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

Preview Lab → · Contrast checker → · Palette generator →

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