#2127A9#2127A9

#2127A9 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.200 H 270.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2127A9
RGBrgb(33, 39, 169)
HSLhsl(237, 67%, 40%)
HSVhsv(237, 80%, 66%)
CMYKcmyk(80.5%, 76.9%, 0%, 33.7%)
CIE-LABlab(25.68, 44.05, -68.92)
CIE-LCHlch(25.68, 81.80, 302.59°)
OKLaboklab(37.8% 0 -0.1996)
OKLCHoklch(37.8% 0.2 270)
XYZxyz(8.5117, 4.6380, 37.9750)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2127A9 #A9A321
analogous
#216BA9 #2127A9 #5F21A9
triadic
#2127A9 #A92127 #27A921
tetradic
#2127A9 #A9216B #A9A321 #21A95F
square
#2127A9 #A9216B #A9A321 #21A95F
split-complementary
#2127A9 #A95F21 #6BA921
monochromatic
#0D0F43 #171B76 #2127A9 #3138D7 #6469E1

Accessibility & contrast

On white

10.89
#2127A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2127A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2127A9
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2127A9#FFFFFF#000000##FFFFFF
##2127A91.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0036A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2127a9;
/* rgb */ color: rgb(33, 39, 169);
/* oklch */ color: oklch(37.8% 0.200 270.0);
Tailwind
colors: {
  custom: {
    50: '#7663c4',
    500: '#2127a9',
    950: '#000000',
  },
}
SCSS
$custom: #2127a9;
$custom-light: #7663c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2127a9",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 237.353,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37797,
    "c": 0.19964,
    "h": 270
  },
  "luminance": 0.04639
}

Semantic roles & 50–950 ramp

primary
#2127A9
secondary
#C6C160
accent
#E33EEA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #2127A9

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

Preview Lab → · Contrast checker → · Palette generator →

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