#20268D#20268D

#20268D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.166 H 271.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#20268D
RGBrgb(32, 38, 141)
HSLhsl(237, 63%, 34%)
HSVhsv(237, 77%, 55%)
CMYKcmyk(77.3%, 73%, 0%, 44.7%)
CIE-LABlab(22.36, 34.79, -57.26)
CIE-LCHlch(22.36, 67.00, 301.29°)
OKLaboklab(34.51% 0.0039 -0.1657)
OKLCHoklch(34.51% 0.166 271.3)
XYZxyz(6.0949, 3.6157, 25.5708)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20268D #8D8720
analogous
#205D8D #20268D #51208D
triadic
#20268D #8D2026 #268D20
tetradic
#20268D #8D205D #8D8720 #208D51
square
#20268D #8D205D #8D8720 #208D51
split-complementary
#20268D #8D5120 #5D8D20
monochromatic
#090B29 #15195B #20268D #2B33BF #5058D7

Accessibility & contrast

On white

12.19
#20268D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#20268D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20268D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20268D#FFFFFF#000000##FFFFFF
##20268D1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #20268d;
/* rgb */ color: rgb(32, 38, 141);
/* oklch */ color: oklch(34.5% 0.166 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f61af',
    500: '#20268d',
    950: '#000000',
  },
}
SCSS
$custom: #20268d;
$custom-light: #6f61af;
$custom-dark: #000000;
JSON
{
  "hex": "#20268d",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 141
  },
  "hsl": {
    "h": 236.697,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34514,
    "c": 0.16578,
    "h": 271.3
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#20268D
secondary
#BAB54E
accent
#DD42E6
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #20268D

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

Preview Lab → · Contrast checker → · Palette generator →

#20268D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva