#20338C#20338C

#20338C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.149 H 268.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#20338C
RGBrgb(32, 51, 140)
HSLhsl(229, 63%, 34%)
HSVhsv(229, 77%, 55%)
CMYKcmyk(77.1%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.47, 25.86, -51.54)
CIE-LCHlch(25.47, 57.66, 296.65°)
OKLaboklab(36.75% -0.0039 -0.1489)
OKLCHoklch(36.75% 0.149 268.5)
XYZxyz(6.5115, 4.5675, 25.3443)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20338C #8C7920
analogous
#20698C #20338C #43208C
triadic
#20338C #8C2033 #338C20
tetradic
#20338C #8C2069 #8C7920 #208C43
square
#20338C #8C2069 #8C7920 #208C43
split-complementary
#20338C #8C4320 #698C20
monochromatic
#090F28 #15215A #20338C #2B45BE #5067D7

Accessibility & contrast

On white

10.97
#20338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#20338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20338C
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20338C#FFFFFF#000000##FFFFFF
##20338C1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #20338c;
/* rgb */ color: rgb(32, 51, 140);
/* oklch */ color: oklch(36.8% 0.149 268.5);
Tailwind
colors: {
  custom: {
    50: '#6d6aae',
    500: '#20338c',
    950: '#000000',
  },
}
SCSS
$custom: #20338c;
$custom-light: #6d6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#20338c",
  "rgb": {
    "r": 32,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 229.444,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3675,
    "c": 0.149,
    "h": 268.5
  },
  "luminance": 0.04568
}

Semantic roles & 50–950 ramp

primary
#20338C
secondary
#BAA74E
accent
#C942E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #20338C

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

Preview Lab → · Contrast checker → · Palette generator →

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