#20266F#20266F

#20266F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.125 H 273.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#20266F
RGBrgb(32, 38, 111)
HSLhsl(235, 55%, 28%)
HSVhsv(235, 71%, 44%)
CMYKcmyk(71.2%, 65.8%, 0%, 56.5%)
CIE-LABlab(19.39, 23.61, -43.10)
CIE-LCHlch(19.39, 49.14, 298.71°)
OKLaboklab(31.46% 0.007 -0.1243)
OKLCHoklch(31.46% 0.125 273.2)
XYZxyz(4.1571, 2.8406, 15.3651)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20266F #6F6920
analogous
#204D6F #20266F #41206F
triadic
#20266F #6F2026 #266F20
tetradic
#20266F #6F204D #6F6920 #206F41
square
#20266F #6F204D #6F6920 #206F41
split-complementary
#20266F #6F4120 #4D6F20
monochromatic
#070818 #12163F #20266F #2E369F #414BC8

Accessibility & contrast

On white

13.39
#20266F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#20266F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20266F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20266F#FFFFFF#000000##FFFFFF
##20266F1.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)
#003371
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #20266f;
/* rgb */ color: rgb(32, 38, 111);
/* oklch */ color: oklch(31.5% 0.125 273.2);
Tailwind
colors: {
  custom: {
    50: '#676099',
    500: '#20266f',
    950: '#000000',
  },
}
SCSS
$custom: #20266f;
$custom-light: #676099;
$custom-dark: #000000;
JSON
{
  "hex": "#20266f",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 111
  },
  "hsl": {
    "h": 235.443,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31461,
    "c": 0.12454,
    "h": 273.2
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#20266F
secondary
#A39C48
accent
#D349DF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #20266F

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

Preview Lab → · Contrast checker → · Palette generator →

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