#2131A4#2131A4

#2131A4 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.183 H 269.0°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2131A4
RGBrgb(33, 49, 164)
HSLhsl(233, 66%, 39%)
HSVhsv(233, 80%, 64%)
CMYKcmyk(79.9%, 70.1%, 0%, 35.7%)
CIE-LABlab(27.30, 36.31, -63.23)
CIE-LCHlch(27.30, 72.92, 299.87°)
OKLaboklab(38.8% -0.0032 -0.1831)
OKLCHoklch(38.8% 0.183 269)
XYZxyz(8.4240, 5.1993, 35.6744)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2131A4 #A49421
analogous
#2172A4 #2131A4 #5221A4
triadic
#2131A4 #A42131 #31A421
tetradic
#2131A4 #A42172 #A49421 #21A452
square
#2131A4 #A42172 #A49421 #21A452
split-complementary
#2131A4 #A45221 #72A421
monochromatic
#0C133E #172271 #2131A4 #2D42D5 #6070DF

Accessibility & contrast

On white

10.29
#2131A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2131A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2131A4
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2131A4#FFFFFF#000000##FFFFFF
##2131A41.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#005166
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2131a4;
/* rgb */ color: rgb(33, 49, 164);
/* oklch */ color: oklch(38.8% 0.183 269.0);
Tailwind
colors: {
  custom: {
    50: '#7469c0',
    500: '#2131a4',
    950: '#000000',
  },
}
SCSS
$custom: #2131a4;
$custom-light: #7469c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2131a4",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 232.672,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38796,
    "c": 0.18316,
    "h": 269
  },
  "luminance": 0.052
}

Semantic roles & 50–950 ramp

primary
#2131A4
secondary
#C4B75D
accent
#D53EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2131A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2131A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva