#20276B#20276B

#20276B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.3% C 0.117 H 273.1°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#20276B
RGBrgb(32, 39, 107)
HSLhsl(234, 54%, 27%)
HSVhsv(234, 70%, 42%)
CMYKcmyk(70.1%, 63.6%, 0%, 58%)
CIE-LABlab(19.31, 21.36, -40.65)
CIE-LCHlch(19.31, 45.92, 297.72°)
OKLaboklab(31.28% 0.0063 -0.1171)
OKLCHoklch(31.28% 0.117 273.1)
XYZxyz(3.9741, 2.8193, 14.2418)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20276B #6B6420
analogous
#204D6B #20276B #3F206B
triadic
#20276B #6B2027 #276B20
tetradic
#20276B #6B204D #6B6420 #206B3F
square
#20276B #6B204D #6B6420 #206B3F
split-complementary
#20276B #6B3F20 #4D6B20
monochromatic
#070918 #12163C #20276B #2E389A #404CC6

Accessibility & contrast

On white

13.43
#20276B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20276B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20276B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20276B#FFFFFF#000000##FFFFFF
##20276B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20276b;
/* rgb */ color: rgb(32, 39, 107);
/* oklch */ color: oklch(31.3% 0.117 273.1);
Tailwind
colors: {
  custom: {
    50: '#666196',
    500: '#20276b',
    950: '#000000',
  },
}
SCSS
$custom: #20276b;
$custom-light: #666196;
$custom-dark: #000000;
JSON
{
  "hex": "#20276b",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 234.4,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31283,
    "c": 0.11731,
    "h": 273.1
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#20276B
secondary
#9F9748
accent
#D04ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #20276B

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

Preview Lab → · Contrast checker → · Palette generator →

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