#20266B#20266B

#20266B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.119 H 273.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#20266B
RGBrgb(32, 38, 107)
HSLhsl(235, 54%, 27%)
HSVhsv(235, 70%, 42%)
CMYKcmyk(70.1%, 64.5%, 0%, 58%)
CIE-LABlab(19.03, 22.07, -41.10)
CIE-LCHlch(19.03, 46.65, 298.23°)
OKLaboklab(31.08% 0.0072 -0.1185)
OKLCHoklch(31.08% 0.119 273.5)
XYZxyz(3.9417, 2.7545, 14.2310)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20266B #6B6520
analogous
#204C6B #20266B #40206B
triadic
#20266B #6B2026 #266B20
tetradic
#20266B #6B204C #6B6520 #206B40
square
#20266B #6B204C #6B6520 #206B40
split-complementary
#20266B #6B4020 #4C6B20
monochromatic
#070818 #12153C #20266B #2E379A #404AC6

Accessibility & contrast

On white

13.54
#20266B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#20266B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20266B
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20266B#FFFFFF#000000##FFFFFF
##20266B1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #20266b;
/* rgb */ color: rgb(32, 38, 107);
/* oklch */ color: oklch(31.1% 0.119 273.5);
Tailwind
colors: {
  custom: {
    50: '#666096',
    500: '#20266b',
    950: '#000000',
  },
}
SCSS
$custom: #20266b;
$custom-light: #666096;
$custom-dark: #000000;
JSON
{
  "hex": "#20266b",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 107
  },
  "hsl": {
    "h": 235.2,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31082,
    "c": 0.11868,
    "h": 273.5
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#20266B
secondary
#9F9848
accent
#D24ADD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #20266B

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

Preview Lab → · Contrast checker → · Palette generator →

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