#2031A8#2031A8

#2031A8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.2% C 0.189 H 268.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#2031A8
RGBrgb(32, 49, 168)
HSLhsl(233, 68%, 39%)
HSVhsv(233, 81%, 66%)
CMYKcmyk(81%, 70.8%, 0%, 34.1%)
CIE-LABlab(27.65, 37.68, -65.06)
CIE-LCHlch(27.65, 75.18, 300.08°)
OKLaboklab(39.17% -0.0046 -0.1885)
OKLCHoklch(39.17% 0.189 268.6)
XYZxyz(8.7594, 5.3298, 37.6053)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2031A8 #A89720
analogous
#2075A8 #2031A8 #5320A8
triadic
#2031A8 #A82031 #31A820
tetradic
#2031A8 #A82075 #A89720 #20A853
square
#2031A8 #A82075 #A89720 #20A853
split-complementary
#2031A8 #A85320 #75A820
monochromatic
#0C1341 #162275 #2031A8 #2E43D7 #6171E1

Accessibility & contrast

On white

10.16
#2031A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2031A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2031A8
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2031A8#FFFFFF#000000##FFFFFF
##2031A81.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2031a8;
/* rgb */ color: rgb(32, 49, 168);
/* oklch */ color: oklch(39.2% 0.189 268.6);
Tailwind
colors: {
  custom: {
    50: '#7569c3',
    500: '#2031a8',
    950: '#000000',
  },
}
SCSS
$custom: #2031a8;
$custom-light: #7569c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2031a8",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 232.5,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39165,
    "c": 0.18853,
    "h": 268.6
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#2031A8
secondary
#C6B95E
accent
#D53DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2031A8

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

Preview Lab → · Contrast checker → · Palette generator →

#2031A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva