#20238F#20238F

#20238F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.172 H 271.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#20238F
RGBrgb(32, 35, 143)
HSLhsl(238, 63%, 34%)
HSVhsv(238, 78%, 56%)
CMYKcmyk(77.6%, 75.5%, 0%, 43.9%)
CIE-LABlab(21.91, 37.34, -59.24)
CIE-LCHlch(21.91, 70.02, 302.23°)
OKLaboklab(34.26% 0.005 -0.1715)
OKLCHoklch(34.26% 0.172 271.7)
XYZxyz(6.1529, 3.4916, 26.3310)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20238F #8F8C20
analogous
#205B8F #20238F #54208F
triadic
#20238F #8F2023 #238F20
tetradic
#20238F #8F205B #8F8C20 #208F54
square
#20238F #8F205B #8F8C20 #208F54
split-complementary
#20238F #8F5420 #5B8F20
monochromatic
#0A0B2B #15175D #20238F #2B2FC1 #5155D8

Accessibility & contrast

On white

12.36
#20238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#20238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20238F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20238F#FFFFFF#000000##FFFFFF
##20238F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20238f;
/* rgb */ color: rgb(32, 35, 143);
/* oklch */ color: oklch(34.3% 0.172 271.7);
Tailwind
colors: {
  custom: {
    50: '#6f5fb1',
    500: '#20238f',
    950: '#000000',
  },
}
SCSS
$custom: #20238f;
$custom-light: #6f5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#20238f",
  "rgb": {
    "r": 32,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 238.378,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.17155,
    "h": 271.7
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#20238F
secondary
#BBB84F
accent
#E241E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20238F

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

Preview Lab → · Contrast checker → · Palette generator →

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