#20266E#20266E

#20266E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.123 H 273.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#20266E
RGBrgb(32, 38, 110)
HSLhsl(235, 55%, 28%)
HSVhsv(235, 71%, 43%)
CMYKcmyk(70.9%, 65.5%, 0%, 56.9%)
CIE-LABlab(19.30, 23.22, -42.60)
CIE-LCHlch(19.30, 48.52, 298.59°)
OKLaboklab(31.37% 0.0071 -0.1229)
OKLCHoklch(31.37% 0.123 273.3)
XYZxyz(4.1023, 2.8187, 15.0767)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20266E #6E6820
analogous
#204D6E #20266E #41206E
triadic
#20266E #6E2026 #266E20
tetradic
#20266E #6E204D #6E6820 #206E41
square
#20266E #6E204D #6E6820 #206E41
split-complementary
#20266E #6E4120 #4D6E20
monochromatic
#070818 #12163F #20266E #2E369D #414BC8

Accessibility & contrast

On white

13.43
#20266E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#20266E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20266E
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20266E#FFFFFF#000000##FFFFFF
##20266E1.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)
#003270
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20266e;
/* rgb */ color: rgb(32, 38, 110);
/* oklch */ color: oklch(31.4% 0.123 273.3);
Tailwind
colors: {
  custom: {
    50: '#676098',
    500: '#20266e',
    950: '#000000',
  },
}
SCSS
$custom: #20266e;
$custom-light: #676098;
$custom-dark: #000000;
JSON
{
  "hex": "#20266e",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 110
  },
  "hsl": {
    "h": 235.385,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31365,
    "c": 0.12308,
    "h": 273.3
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#20266E
secondary
#A29B48
accent
#D34ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #20266E

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

Preview Lab → · Contrast checker → · Palette generator →

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