#20247E#20247E

#20247E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.148 H 272.7°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#20247E
RGBrgb(32, 36, 126)
HSLhsl(237, 59%, 31%)
HSVhsv(237, 75%, 49%)
CMYKcmyk(74.6%, 71.4%, 0%, 50.6%)
CIE-LABlab(20.34, 30.60, -51.16)
CIE-LCHlch(20.34, 59.61, 300.88°)
OKLaboklab(32.6% 0.0071 -0.1479)
OKLCHoklch(32.6% 0.148 272.7)
XYZxyz(4.9912, 3.0747, 20.0651)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20247E #7E7A20
analogous
#20537E #20247E #4B207E
triadic
#20247E #7E2024 #247E20
tetradic
#20247E #7E2053 #7E7A20 #207E4B
square
#20247E #7E2053 #7E7A20 #207E4B
split-complementary
#20247E #7E4B20 #537E20
monochromatic
#07081C #14164D #20247E #2C32AF #484ED0

Accessibility & contrast

On white

13.00
#20247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#20247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20247E
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20247E#FFFFFF#000000##FFFFFF
##20247E1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #20247e;
/* rgb */ color: rgb(32, 36, 126);
/* oklch */ color: oklch(32.6% 0.148 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b5fa4',
    500: '#20247e',
    950: '#000000',
  },
}
SCSS
$custom: #20247e;
$custom-light: #6b5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#20247e",
  "rgb": {
    "r": 32,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 237.447,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32595,
    "c": 0.1481,
    "h": 272.7
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#20247E
secondary
#B1AC49
accent
#DC45E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #20247E

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

Preview Lab → · Contrast checker → · Palette generator →

#20247E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva