#20248F#20248F

#20248F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.171 H 271.5°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#20248F
RGBrgb(32, 36, 143)
HSLhsl(238, 63%, 34%)
HSVhsv(238, 78%, 56%)
CMYKcmyk(77.6%, 74.8%, 0%, 43.9%)
CIE-LABlab(22.13, 36.74, -58.88)
CIE-LCHlch(22.13, 69.40, 301.96°)
OKLaboklab(34.41% 0.0045 -0.1704)
OKLCHoklch(34.41% 0.171 271.5)
XYZxyz(6.1828, 3.5513, 26.3409)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20248F #8F8B20
analogous
#205C8F #20248F #54208F
triadic
#20248F #8F2024 #248F20
tetradic
#20248F #8F205C #8F8B20 #208F54
square
#20248F #8F205C #8F8B20 #208F54
split-complementary
#20248F #8F5420 #5C8F20
monochromatic
#0A0B2B #15175D #20248F #2B31C1 #5156D8

Accessibility & contrast

On white

12.28
#20248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#20248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20248F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20248F#FFFFFF#000000##FFFFFF
##20248F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20248f;
/* rgb */ color: rgb(32, 36, 143);
/* oklch */ color: oklch(34.4% 0.171 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f60b1',
    500: '#20248f',
    950: '#000000',
  },
}
SCSS
$custom: #20248f;
$custom-light: #6f60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#20248f",
  "rgb": {
    "r": 32,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 237.838,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34414,
    "c": 0.17051,
    "h": 271.5
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20248F

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

Preview Lab → · Contrast checker → · Palette generator →

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