#20276A#20276A

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

Color values

HEX#20276A
RGBrgb(32, 39, 106)
HSLhsl(234, 54%, 27%)
HSVhsv(234, 70%, 42%)
CMYKcmyk(69.8%, 63.2%, 0%, 58.4%)
CIE-LABlab(19.22, 20.98, -40.14)
CIE-LCHlch(19.22, 45.29, 297.59°)
OKLaboklab(31.19% 0.0063 -0.1156)
OKLCHoklch(31.19% 0.116 273.1)
XYZxyz(3.9218, 2.7984, 13.9663)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20276A #6A6320
analogous
#204C6A #20276A #3E206A
triadic
#20276A #6A2027 #276A20
tetradic
#20276A #6A204C #6A6320 #206A3E
square
#20276A #6A204C #6A6320 #206A3E
split-complementary
#20276A #6A3E20 #4C6A20
monochromatic
#070918 #12163B #20276A #2E3899 #3F4CC5

Accessibility & contrast

On white

13.46
#20276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20276A
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20276A#FFFFFF#000000##FFFFFF
##20276A1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#003844
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20276a;
/* rgb */ color: rgb(32, 39, 106);
/* oklch */ color: oklch(31.2% 0.116 273.1);
Tailwind
colors: {
  custom: {
    50: '#666195',
    500: '#20276a',
    950: '#000000',
  },
}
SCSS
$custom: #20276a;
$custom-light: #666195;
$custom-dark: #000000;
JSON
{
  "hex": "#20276a",
  "rgb": {
    "r": 32,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 234.324,
    "s": 53.623,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31191,
    "c": 0.11582,
    "h": 273.1
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#20276A
secondary
#9E9648
accent
#CF4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #20276A

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

Preview Lab → · Contrast checker → · Palette generator →

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