#20276D#20276D

#20276D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.120 H 273.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#20276D
RGBrgb(32, 39, 109)
HSLhsl(235, 55%, 28%)
HSVhsv(235, 71%, 43%)
CMYKcmyk(70.6%, 64.2%, 0%, 57.3%)
CIE-LABlab(19.48, 22.14, -41.66)
CIE-LCHlch(19.48, 47.18, 297.98°)
OKLaboklab(31.47% 0.0062 -0.1201)
OKLCHoklch(31.47% 0.12 273)
XYZxyz(4.0806, 2.8619, 14.8024)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20276D #6D6620
analogous
#204E6D #20276D #3F206D
triadic
#20276D #6D2027 #276D20
tetradic
#20276D #6D204E #6D6620 #206D3F
square
#20276D #6D204E #6D6620 #206D3F
split-complementary
#20276D #6D3F20 #4E6D20
monochromatic
#070818 #12163E #20276D #2E389C #404DC7

Accessibility & contrast

On white

13.36
#20276D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20276D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20276D
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20276D#FFFFFF#000000##FFFFFF
##20276D1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20276d;
/* rgb */ color: rgb(32, 39, 109);
/* oklch */ color: oklch(31.5% 0.120 273.0);
Tailwind
colors: {
  custom: {
    50: '#666197',
    500: '#20276d',
    950: '#000000',
  },
}
SCSS
$custom: #20276d;
$custom-light: #666197;
$custom-dark: #000000;
JSON
{
  "hex": "#20276d",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 109
  },
  "hsl": {
    "h": 234.545,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31469,
    "c": 0.12027,
    "h": 273
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#20276D
secondary
#A19948
accent
#D04ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #20276D

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

Preview Lab → · Contrast checker → · Palette generator →

#20276D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva