#2131A7#2131A7

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

Color values

HEX#2131A7
RGBrgb(33, 49, 167)
HSLhsl(233, 67%, 39%)
HSVhsv(233, 80%, 65%)
CMYKcmyk(80.2%, 70.7%, 0%, 34.5%)
CIE-LABlab(27.60, 37.40, -64.55)
CIE-LCHlch(27.60, 74.60, 300.09°)
OKLaboklab(39.11% -0.0035 -0.187)
OKLCHoklch(39.11% 0.187 268.9)
XYZxyz(8.6982, 5.3090, 37.1180)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2131A7 #A79721
analogous
#2174A7 #2131A7 #5421A7
triadic
#2131A7 #A72131 #31A721
tetradic
#2131A7 #A72174 #A79721 #21A754
square
#2131A7 #A72174 #A79721 #21A754
split-complementary
#2131A7 #A75421 #74A721
monochromatic
#0D1341 #172274 #2131A7 #2F43D6 #6271E0

Accessibility & contrast

On white

10.18
#2131A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2131A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2131A7
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2131A7#FFFFFF#000000##FFFFFF
##2131A71.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2131a7;
/* rgb */ color: rgb(33, 49, 167);
/* oklch */ color: oklch(39.1% 0.187 268.9);
Tailwind
colors: {
  custom: {
    50: '#7569c2',
    500: '#2131a7',
    950: '#000000',
  },
}
SCSS
$custom: #2131a7;
$custom-light: #7569c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2131a7",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 232.836,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39106,
    "c": 0.18699,
    "h": 268.9
  },
  "luminance": 0.0531
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2131A7

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

Preview Lab → · Contrast checker → · Palette generator →

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