#20276E#20276E

#20276E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.122 H 272.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#20276E
RGBrgb(32, 39, 110)
HSLhsl(235, 55%, 28%)
HSVhsv(235, 71%, 43%)
CMYKcmyk(70.9%, 64.5%, 0%, 56.9%)
CIE-LABlab(19.57, 22.52, -42.16)
CIE-LCHlch(19.57, 47.80, 298.11°)
OKLaboklab(31.56% 0.0062 -0.1216)
OKLCHoklch(31.56% 0.122 272.9)
XYZxyz(4.1347, 2.8835, 15.0875)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20276E #6E6720
analogous
#204E6E #20276E #40206E
triadic
#20276E #6E2027 #276E20
tetradic
#20276E #6E204E #6E6720 #206E40
square
#20276E #6E204E #6E6720 #206E40
split-complementary
#20276E #6E4020 #4E6E20
monochromatic
#070818 #12163F #20276E #2E389D #414DC8

Accessibility & contrast

On white

13.32
#20276E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#20276E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20276E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20276E#FFFFFF#000000##FFFFFF
##20276E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20276e;
/* rgb */ color: rgb(32, 39, 110);
/* oklch */ color: oklch(31.6% 0.122 272.9);
Tailwind
colors: {
  custom: {
    50: '#676198',
    500: '#20276e',
    950: '#000000',
  },
}
SCSS
$custom: #20276e;
$custom-light: #676198;
$custom-dark: #000000;
JSON
{
  "hex": "#20276e",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 110
  },
  "hsl": {
    "h": 234.615,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31563,
    "c": 0.12174,
    "h": 272.9
  },
  "luminance": 0.02884
}

Semantic roles & 50–950 ramp

primary
#20276E
secondary
#A29A48
accent
#D14ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #20276E

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

Preview Lab → · Contrast checker → · Palette generator →

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