#20268E#20268E

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

Color values

HEX#20268E
RGBrgb(32, 38, 142)
HSLhsl(237, 63%, 34%)
HSVhsv(237, 77%, 56%)
CMYKcmyk(77.5%, 73.2%, 0%, 44.3%)
CIE-LABlab(22.46, 35.15, -57.71)
CIE-LCHlch(22.46, 67.57, 301.35°)
OKLaboklab(34.62% 0.0037 -0.167)
OKLCHoklch(34.62% 0.167 271.3)
XYZxyz(6.1696, 3.6456, 25.9645)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20268E #8E8820
analogous
#205D8E #20268E #51208E
triadic
#20268E #8E2026 #268E20
tetradic
#20268E #8E205D #8E8820 #208E51
square
#20268E #8E205D #8E8820 #208E51
split-complementary
#20268E #8E5120 #5D8E20
monochromatic
#090B2A #15195C #20268E #2B33C0 #5158D8

Accessibility & contrast

On white

12.14
#20268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#20268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20268E
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20268E#FFFFFF#000000##FFFFFF
##20268E1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #20268e;
/* rgb */ color: rgb(32, 38, 142);
/* oklch */ color: oklch(34.6% 0.167 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f61b0',
    500: '#20268e',
    950: '#000000',
  },
}
SCSS
$custom: #20268e;
$custom-light: #6f61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#20268e",
  "rgb": {
    "r": 32,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 236.727,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34622,
    "c": 0.16708,
    "h": 271.3
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#20268E
secondary
#BBB54F
accent
#DD42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #20268E

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

Preview Lab → · Contrast checker → · Palette generator →

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