#20247F#20247F

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

Color values

HEX#20247F
RGBrgb(32, 36, 127)
HSLhsl(237, 60%, 31%)
HSVhsv(237, 75%, 50%)
CMYKcmyk(74.8%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.44, 30.96, -51.62)
CIE-LCHlch(20.44, 60.20, 300.96°)
OKLaboklab(32.7% 0.0069 -0.1493)
OKLCHoklch(32.7% 0.149 272.7)
XYZxyz(5.0560, 3.1006, 20.4066)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20247F #7F7B20
analogous
#20537F #20247F #4B207F
triadic
#20247F #7F2024 #247F20
tetradic
#20247F #7F2053 #7F7B20 #207F4B
square
#20247F #7F2053 #7F7B20 #207F4B
split-complementary
#20247F #7F4B20 #537F20
monochromatic
#07081D #14164E #20247F #2C32B0 #484ED1

Accessibility & contrast

On white

12.96
#20247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20247F
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20247F#FFFFFF#000000##FFFFFF
##20247F1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20247f;
/* rgb */ color: rgb(32, 36, 127);
/* oklch */ color: oklch(32.7% 0.149 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b5fa5',
    500: '#20247f',
    950: '#000000',
  },
}
SCSS
$custom: #20247f;
$custom-light: #6b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#20247f",
  "rgb": {
    "r": 32,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 237.474,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32699,
    "c": 0.14946,
    "h": 272.7
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20247F

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

Preview Lab → · Contrast checker → · Palette generator →

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