#20276C#20276C

#20276C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.4% C 0.119 H 273.0°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#20276C
RGBrgb(32, 39, 108)
HSLhsl(234, 54%, 27%)
HSVhsv(234, 70%, 42%)
CMYKcmyk(70.4%, 63.9%, 0%, 57.6%)
CIE-LABlab(19.39, 21.75, -41.16)
CIE-LCHlch(19.39, 46.55, 297.86°)
OKLaboklab(31.38% 0.0063 -0.1186)
OKLCHoklch(31.38% 0.119 273)
XYZxyz(4.0271, 2.8405, 14.5205)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20276C #6C6520
analogous
#204D6C #20276C #3F206C
triadic
#20276C #6C2027 #276C20
tetradic
#20276C #6C204D #6C6520 #206C3F
square
#20276C #6C204D #6C6520 #206C3F
split-complementary
#20276C #6C3F20 #4D6C20
monochromatic
#070918 #12163D #20276C #2E389B #404CC6

Accessibility & contrast

On white

13.39
#20276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20276C
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20276C#FFFFFF#000000##FFFFFF
##20276C1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20276c;
/* rgb */ color: rgb(32, 39, 108);
/* oklch */ color: oklch(31.4% 0.119 273.0);
Tailwind
colors: {
  custom: {
    50: '#666197',
    500: '#20276c',
    950: '#000000',
  },
}
SCSS
$custom: #20276c;
$custom-light: #666197;
$custom-dark: #000000;
JSON
{
  "hex": "#20276c",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 234.474,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31376,
    "c": 0.11879,
    "h": 273
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #20276C

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

Preview Lab → · Contrast checker → · Palette generator →

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