#2127A4#2127A4

#2127A4 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.194 H 270.3°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2127A4
RGBrgb(33, 39, 164)
HSLhsl(237, 66%, 39%)
HSVhsv(237, 80%, 64%)
CMYKcmyk(79.9%, 76.2%, 0%, 35.7%)
CIE-LABlab(25.12, 42.36, -66.82)
CIE-LCHlch(25.12, 79.12, 302.37°)
OKLaboklab(37.24% 0.0009 -0.1935)
OKLCHoklch(37.24% 0.194 270.3)
XYZxyz(8.0513, 4.4538, 35.5501)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2127A4 #A49E21
analogous
#2168A4 #2127A4 #5C21A4
triadic
#2127A4 #A42127 #27A421
tetradic
#2127A4 #A42168 #A49E21 #21A45C
square
#2127A4 #A42168 #A49E21 #21A45C
split-complementary
#2127A4 #A45C21 #68A421
monochromatic
#0C0F3E #171B71 #2127A4 #2D35D5 #6066DF

Accessibility & contrast

On white

11.11
#2127A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2127A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2127A4
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2127A4#FFFFFF#000000##FFFFFF
##2127A41.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2127a4;
/* rgb */ color: rgb(33, 39, 164);
/* oklch */ color: oklch(37.2% 0.194 270.3);
Tailwind
colors: {
  custom: {
    50: '#7563c0',
    500: '#2127a4',
    950: '#000000',
  },
}
SCSS
$custom: #2127a4;
$custom-light: #7563c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2127a4",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 237.252,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37237,
    "c": 0.19355,
    "h": 270.3
  },
  "luminance": 0.04455
}

Semantic roles & 50–950 ramp

primary
#2127A4
secondary
#C4BF5D
accent
#E23EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2127A4

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

Preview Lab → · Contrast checker → · Palette generator →

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