#2127BA#2127BA

#2127BA is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.7% C 0.220 H 269.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#2127BA
RGBrgb(33, 39, 186)
HSLhsl(238, 70%, 43%)
HSVhsv(238, 82%, 73%)
CMYKcmyk(82.3%, 79%, 0%, 27.1%)
CIE-LABlab(27.62, 49.67, -75.87)
CIE-LCHlch(27.62, 90.68, 303.21°)
OKLaboklab(39.73% -0.0029 -0.2198)
OKLCHoklch(39.73% 0.22 269.2)
XYZxyz(10.2126, 5.3183, 46.9331)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2127BA #BAB421
analogous
#2173BA #2127BA #6721BA
triadic
#2127BA #BA2127 #27BA21
tetradic
#2127BA #BA2173 #BAB421 #21BA67
square
#2127BA #BA2173 #BAB421 #21BA67
split-complementary
#2127BA #BA6721 #73BA21
monochromatic
#0F1152 #181C86 #2127BA #3C42DC #7074E6

Accessibility & contrast

On white

10.17
#2127BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2127BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2127BA
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2127BA#FFFFFF#000000##FFFFFF
##2127BA1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BE
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#005570
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2127ba;
/* rgb */ color: rgb(33, 39, 186);
/* oklch */ color: oklch(39.7% 0.220 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b64d0',
    500: '#2127ba',
    950: '#000000',
  },
}
SCSS
$custom: #2127ba;
$custom-light: #7b64d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2127ba",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 237.647,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39733,
    "c": 0.21978,
    "h": 269.2
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#2127BA
secondary
#CCC86B
accent
#E63BED
background
#F8F6FD
surface
#EFEBFA
border
#CAC6D3
text
#0B0614
muted
#7C7A83

Preview Lab

Preview with #2127BA

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

Preview Lab → · Contrast checker → · Palette generator →

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