#20267C#20267C

#20267C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.143 H 272.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#20267C
RGBrgb(32, 38, 124)
HSLhsl(236, 59%, 31%)
HSVhsv(236, 74%, 49%)
CMYKcmyk(74.2%, 69.4%, 0%, 51.4%)
CIE-LABlab(20.63, 28.54, -49.42)
CIE-LCHlch(20.63, 57.06, 300.01°)
OKLaboklab(32.74% 0.006 -0.1428)
OKLCHoklch(32.74% 0.143 272.4)
XYZxyz(4.9256, 3.1480, 19.4129)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20267C #7C7620
analogous
#20547C #20267C #48207C
triadic
#20267C #7C2026 #267C20
tetradic
#20267C #7C2054 #7C7620 #207C48
square
#20267C #7C2054 #7C7620 #207C48
split-complementary
#20267C #7C4820 #547C20
monochromatic
#07081B #13174B #20267C #2D35AD #4750CF

Accessibility & contrast

On white

12.89
#20267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#20267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20267C
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20267C#FFFFFF#000000##FFFFFF
##20267C1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20267c;
/* rgb */ color: rgb(32, 38, 124);
/* oklch */ color: oklch(32.7% 0.143 272.4);
Tailwind
colors: {
  custom: {
    50: '#6a60a3',
    500: '#20267c',
    950: '#000000',
  },
}
SCSS
$custom: #20267c;
$custom-light: #6a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20267c",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 236.087,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32741,
    "c": 0.14296,
    "h": 272.4
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#20267C
secondary
#AFA849
accent
#D846E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20267C

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

Preview Lab → · Contrast checker → · Palette generator →

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