#2031A5#2031A5

#2031A5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.185 H 268.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2031A5
RGBrgb(32, 49, 165)
HSLhsl(232, 68%, 39%)
HSVhsv(232, 81%, 65%)
CMYKcmyk(80.6%, 70.3%, 0%, 35.3%)
CIE-LABlab(27.35, 36.59, -63.75)
CIE-LCHlch(27.35, 73.50, 299.86°)
OKLaboklab(38.85% -0.0043 -0.1846)
OKLCHoklch(38.85% 0.185 268.7)
XYZxyz(8.4832, 5.2193, 36.1503)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2031A5 #A59420
analogous
#2073A5 #2031A5 #5120A5
triadic
#2031A5 #A52031 #31A520
tetradic
#2031A5 #A52073 #A59420 #20A551
square
#2031A5 #A52073 #A59420 #20A551
split-complementary
#2031A5 #A55120 #73A520
monochromatic
#0C133E #162272 #2031A5 #2C42D6 #5F70E0

Accessibility & contrast

On white

10.27
#2031A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2031A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2031A5
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2031A5#FFFFFF#000000##FFFFFF
##2031A51.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2031a5;
/* rgb */ color: rgb(32, 49, 165);
/* oklch */ color: oklch(38.9% 0.185 268.7);
Tailwind
colors: {
  custom: {
    50: '#7469c1',
    500: '#2031a5',
    950: '#000000',
  },
}
SCSS
$custom: #2031a5;
$custom-light: #7469c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2031a5",
  "rgb": {
    "r": 32,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 232.331,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.1847,
    "h": 268.7
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#2031A5
secondary
#C5B75C
accent
#D43DEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2031A5

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

Preview Lab → · Contrast checker → · Palette generator →

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