#20277C#20277C

#20277C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.142 H 272.1°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#20277C
RGBrgb(32, 39, 124)
HSLhsl(235, 59%, 31%)
HSVhsv(235, 74%, 49%)
CMYKcmyk(74.2%, 68.5%, 0%, 51.4%)
CIE-LABlab(20.88, 27.87, -49.01)
CIE-LCHlch(20.88, 56.38, 299.63°)
OKLaboklab(32.92% 0.0053 -0.1416)
OKLCHoklch(32.92% 0.142 272.1)
XYZxyz(4.9580, 3.2129, 19.4237)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20277C #7C7520
analogous
#20557C #20277C #47207C
triadic
#20277C #7C2027 #277C20
tetradic
#20277C #7C2055 #7C7520 #207C47
square
#20277C #7C2055 #7C7520 #207C47
split-complementary
#20277C #7C4720 #557C20
monochromatic
#07081B #13184B #20277C #2D36AD #4751CF

Accessibility & contrast

On white

12.78
#20277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#20277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20277C
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20277C#FFFFFF#000000##FFFFFF
##20277C1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #20277c;
/* rgb */ color: rgb(32, 39, 124);
/* oklch */ color: oklch(32.9% 0.142 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a61a3',
    500: '#20277c',
    950: '#000000',
  },
}
SCSS
$custom: #20277c;
$custom-light: #6a61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20277c",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 235.435,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32923,
    "c": 0.14174,
    "h": 272.1
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#20277C
secondary
#AFA749
accent
#D646E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #20277C

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

Preview Lab → · Contrast checker → · Palette generator →

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