#20248A#20248A

#20248A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.164 H 271.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#20248A
RGBrgb(32, 36, 138)
HSLhsl(238, 62%, 33%)
HSVhsv(238, 77%, 54%)
CMYKcmyk(76.8%, 73.9%, 0%, 45.9%)
CIE-LABlab(21.59, 34.96, -56.65)
CIE-LCHlch(21.59, 66.57, 301.68°)
OKLaboklab(33.87% 0.0053 -0.164)
OKLCHoklch(33.87% 0.164 271.9)
XYZxyz(5.8124, 3.4032, 24.3904)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20248A #8A8620
analogous
#20598A #20248A #51208A
triadic
#20248A #8A2024 #248A20
tetradic
#20248A #8A2059 #8A8620 #208A51
square
#20248A #8A2059 #8A8620 #208A51
split-complementary
#20248A #8A5120 #598A20
monochromatic
#090A27 #141758 #20248A #2C31BC #4E53D6

Accessibility & contrast

On white

12.49
#20248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#20248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20248A
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20248A#FFFFFF#000000##FFFFFF
##20248A1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #20248a;
/* rgb */ color: rgb(32, 36, 138);
/* oklch */ color: oklch(33.9% 0.164 271.9);
Tailwind
colors: {
  custom: {
    50: '#6e60ad',
    500: '#20248a',
    950: '#000000',
  },
}
SCSS
$custom: #20248a;
$custom-light: #6e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#20248a",
  "rgb": {
    "r": 32,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 237.736,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3387,
    "c": 0.16405,
    "h": 271.9
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#20248A
secondary
#B9B54D
accent
#DF42E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20248A

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

Preview Lab → · Contrast checker → · Palette generator →

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