#20267F#20267F

#20267F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.147 H 272.2°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#20267F
RGBrgb(32, 38, 127)
HSLhsl(236, 60%, 31%)
HSVhsv(236, 75%, 50%)
CMYKcmyk(74.8%, 70.1%, 0%, 50.2%)
CIE-LABlab(20.92, 29.66, -50.83)
CIE-LCHlch(20.92, 58.85, 300.26°)
OKLaboklab(33.05% 0.0056 -0.147)
OKLCHoklch(33.05% 0.147 272.2)
XYZxyz(5.1183, 3.2251, 20.4273)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20267F #7F7920
analogous
#20557F #20267F #49207F
triadic
#20267F #7F2026 #267F20
tetradic
#20267F #7F2055 #7F7920 #207F49
square
#20267F #7F2055 #7F7920 #207F49
split-complementary
#20267F #7F4920 #557F20
monochromatic
#07091D #14174E #20267F #2C35B0 #4851D1

Accessibility & contrast

On white

12.76
#20267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#20267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20267F
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20267F#FFFFFF#000000##FFFFFF
##20267F1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20267f;
/* rgb */ color: rgb(32, 38, 127);
/* oklch */ color: oklch(33.0% 0.147 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b60a5',
    500: '#20267f',
    950: '#000000',
  },
}
SCSS
$custom: #20267f;
$custom-light: #6b60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#20267f",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 236.211,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33047,
    "c": 0.14709,
    "h": 272.2
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#20267F
secondary
#B2AB49
accent
#D945E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #20267F

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

Preview Lab → · Contrast checker → · Palette generator →

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