#2127A0#2127A0

#2127A0 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.189 H 270.5°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2127A0
RGBrgb(33, 39, 160)
HSLhsl(237, 66%, 38%)
HSVhsv(237, 79%, 63%)
CMYKcmyk(79.4%, 75.6%, 0%, 37.3%)
CIE-LABlab(24.68, 40.98, -65.13)
CIE-LCHlch(24.68, 76.95, 302.18°)
OKLaboklab(36.79% 0.0016 -0.1886)
OKLCHoklch(36.79% 0.189 270.5)
XYZxyz(7.6957, 4.3116, 33.6775)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2127A0 #A09A21
analogous
#2167A0 #2127A0 #5A21A0
triadic
#2127A0 #A02127 #27A021
tetradic
#2127A0 #A02167 #A09A21 #21A05A
square
#2127A0 #A02167 #A09A21 #21A05A
split-complementary
#2127A0 #A05A21 #67A021
monochromatic
#0C0E3B #171B6D #2127A0 #2B33D3 #5E64DE

Accessibility & contrast

On white

11.28
#2127A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2127A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2127A0
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2127A0#FFFFFF#000000##FFFFFF
##2127A01.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2127a0;
/* rgb */ color: rgb(33, 39, 160);
/* oklch */ color: oklch(36.8% 0.189 270.5);
Tailwind
colors: {
  custom: {
    50: '#7463bd',
    500: '#2127a0',
    950: '#000000',
  },
}
SCSS
$custom: #2127a0;
$custom-light: #7463bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2127a0",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 237.165,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36792,
    "c": 0.18862,
    "h": 270.5
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#2127A0
secondary
#C2BD5B
accent
#E13FE9
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2127A0

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

Preview Lab → · Contrast checker → · Palette generator →

#2127A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva