#2131A8#2131A8

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

Color values

HEX#2131A8
RGBrgb(33, 49, 168)
HSLhsl(233, 67%, 39%)
HSVhsv(233, 80%, 66%)
CMYKcmyk(80.4%, 70.8%, 0%, 34.1%)
CIE-LABlab(27.70, 37.76, -64.98)
CIE-LCHlch(27.70, 75.16, 300.16°)
OKLaboklab(39.21% -0.0036 -0.1882)
OKLCHoklch(39.21% 0.188 268.9)
XYZxyz(8.7910, 5.3461, 37.6068)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2131A8 #A89821
analogous
#2175A8 #2131A8 #5521A8
triadic
#2131A8 #A82131 #31A821
tetradic
#2131A8 #A82175 #A89821 #21A855
square
#2131A8 #A82175 #A89821 #21A855
split-complementary
#2131A8 #A85521 #75A821
monochromatic
#0D1342 #172275 #2131A8 #3044D6 #6372E0

Accessibility & contrast

On white

10.15
#2131A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2131A8
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2131A8#FFFFFF#000000##FFFFFF
##2131A81.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.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: #2131a8;
/* rgb */ color: rgb(33, 49, 168);
/* oklch */ color: oklch(39.2% 0.188 268.9);
Tailwind
colors: {
  custom: {
    50: '#7569c3',
    500: '#2131a8',
    950: '#000000',
  },
}
SCSS
$custom: #2131a8;
$custom-light: #7569c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2131a8",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 232.889,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39209,
    "c": 0.18826,
    "h": 268.9
  },
  "luminance": 0.05347
}

Semantic roles & 50–950 ramp

primary
#2131A8
secondary
#C5B95F
accent
#D63EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #2131A8

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

Preview Lab → · Contrast checker → · Palette generator →

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