#20266C#20266C

#20266C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.120 H 273.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#20266C
RGBrgb(32, 38, 108)
HSLhsl(235, 54%, 27%)
HSVhsv(235, 70%, 42%)
CMYKcmyk(70.4%, 64.8%, 0%, 57.6%)
CIE-LABlab(19.12, 22.45, -41.60)
CIE-LCHlch(19.12, 47.27, 298.35°)
OKLaboklab(31.18% 0.0071 -0.1199)
OKLCHoklch(31.18% 0.12 273.4)
XYZxyz(3.9946, 2.7757, 14.5097)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20266C #6C6620
analogous
#204C6C #20266C #40206C
triadic
#20266C #6C2026 #266C20
tetradic
#20266C #6C204C #6C6620 #206C40
square
#20266C #6C204C #6C6620 #206C40
split-complementary
#20266C #6C4020 #4C6C20
monochromatic
#070818 #12153D #20266C #2E379B #404BC6

Accessibility & contrast

On white

13.50
#20266C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #20266C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20266C#FFFFFF#000000##FFFFFF
##20266C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #20266c;
/* rgb */ color: rgb(32, 38, 108);
/* oklch */ color: oklch(31.2% 0.120 273.4);
Tailwind
colors: {
  custom: {
    50: '#666097',
    500: '#20266c',
    950: '#000000',
  },
}
SCSS
$custom: #20266c;
$custom-light: #666097;
$custom-dark: #000000;
JSON
{
  "hex": "#20266c",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 108
  },
  "hsl": {
    "h": 235.263,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31176,
    "c": 0.12015,
    "h": 273.4
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#20266C
secondary
#A09948
accent
#D24ADE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #20266C

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

Preview Lab → · Contrast checker → · Palette generator →

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