#20127C#20127C

#20127C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.163 H 275.8°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#20127C
RGBrgb(32, 18, 124)
HSLhsl(248, 75%, 28%)
HSVhsv(248, 85%, 49%)
CMYKcmyk(74.2%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.48, 40.21, -56.26)
CIE-LCHlch(16.48, 69.16, 305.55°)
OKLaboklab(29.8% 0.0166 -0.1626)
OKLCHoklch(29.8% 0.163 275.8)
XYZxyz(4.4489, 2.1945, 19.2540)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20127C #6E7C12
analogous
#12397C #20127C #55127C
triadic
#20127C #7C2012 #127C20
tetradic
#20127C #7C1239 #6E7C12 #127C55
square
#20127C #7C1239 #6E7C12 #127C55
split-complementary
#20127C #7C5512 #397C12
monochromatic
#07041B #120A47 #20127C #2E1AB1 #4129E0

Accessibility & contrast

On white

14.59
#20127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#20127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #20127C
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20127C#FFFFFF#000000##FFFFFF
##20127C1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #20127c;
/* rgb */ color: rgb(32, 18, 124);
/* oklch */ color: oklch(29.8% 0.163 275.8);
Tailwind
colors: {
  custom: {
    50: '#6c54a3',
    500: '#20127c',
    950: '#000000',
  },
}
SCSS
$custom: #20127c;
$custom-light: #6c54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#20127c",
  "rgb": {
    "r": 32,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 247.925,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29798,
    "c": 0.16348,
    "h": 275.8
  },
  "luminance": 0.02195
}

Semantic roles & 50–950 ramp

primary
#20127C
secondary
#A2B238
accent
#F137D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #20127C

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

Preview Lab → · Contrast checker → · Palette generator →

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