#2127A6#2127A6

#2127A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.196 H 270.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2127A6
RGBrgb(33, 39, 166)
HSLhsl(237, 67%, 39%)
HSVhsv(237, 80%, 65%)
CMYKcmyk(80.1%, 76.5%, 0%, 34.9%)
CIE-LABlab(25.34, 43.04, -67.67)
CIE-LCHlch(25.34, 80.19, 302.46°)
OKLaboklab(37.46% 0.0006 -0.196)
OKLCHoklch(37.46% 0.196 270.2)
XYZxyz(8.2333, 4.5266, 36.5088)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2127A6 #A6A021
analogous
#216AA6 #2127A6 #5E21A6
triadic
#2127A6 #A62127 #27A621
tetradic
#2127A6 #A6216A #A6A021 #21A65E
square
#2127A6 #A6216A #A6A021 #21A65E
split-complementary
#2127A6 #A65E21 #6AA621
monochromatic
#0D0F40 #171B73 #2127A6 #2F36D6 #6267E0

Accessibility & contrast

On white

11.02
#2127A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2127A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2127A6
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2127A6#FFFFFF#000000##FFFFFF
##2127A61.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2127a6;
/* rgb */ color: rgb(33, 39, 166);
/* oklch */ color: oklch(37.5% 0.196 270.2);
Tailwind
colors: {
  custom: {
    50: '#7563c2',
    500: '#2127a6',
    950: '#000000',
  },
}
SCSS
$custom: #2127a6;
$custom-light: #7563c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2127a6",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 237.293,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3746,
    "c": 0.19599,
    "h": 270.2
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#2127A6
secondary
#C5C05E
accent
#E23EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2127A6

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

Preview Lab → · Contrast checker → · Palette generator →

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