#20248B#20248B

#20248B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.165 H 271.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#20248B
RGBrgb(32, 36, 139)
HSLhsl(238, 63%, 34%)
HSVhsv(238, 77%, 55%)
CMYKcmyk(77%, 74.1%, 0%, 45.5%)
CIE-LABlab(21.70, 35.32, -57.10)
CIE-LCHlch(21.70, 67.14, 301.74°)
OKLaboklab(33.98% 0.0052 -0.1653)
OKLCHoklch(33.98% 0.165 271.8)
XYZxyz(5.8852, 3.4323, 24.7734)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20248B #8B8720
analogous
#20598B #20248B #51208B
triadic
#20248B #8B2024 #248B20
tetradic
#20248B #8B2059 #8B8720 #208B51
square
#20248B #8B2059 #8B8720 #208B51
split-complementary
#20248B #8B5120 #598B20
monochromatic
#090A28 #151759 #20248B #2B31BD #4F54D6

Accessibility & contrast

On white

12.45
#20248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#20248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20248B
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20248B#FFFFFF#000000##FFFFFF
##20248B1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20248b;
/* rgb */ color: rgb(32, 36, 139);
/* oklch */ color: oklch(34.0% 0.165 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e60ae',
    500: '#20248b',
    950: '#000000',
  },
}
SCSS
$custom: #20248b;
$custom-light: #6e60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#20248b",
  "rgb": {
    "r": 32,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 237.757,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33978,
    "c": 0.16535,
    "h": 271.8
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#20248B
secondary
#BAB54D
accent
#E042E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #20248B

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

Preview Lab → · Contrast checker → · Palette generator →

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