#2126A0#2126A0

#2126A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.190 H 270.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2126A0
RGBrgb(33, 38, 160)
HSLhsl(238, 66%, 38%)
HSVhsv(238, 79%, 63%)
CMYKcmyk(79.4%, 76.3%, 0%, 37.3%)
CIE-LABlab(24.47, 41.56, -65.46)
CIE-LCHlch(24.47, 77.54, 302.41°)
OKLaboklab(36.65% 0.0019 -0.1896)
OKLCHoklch(36.65% 0.19 270.6)
XYZxyz(7.6633, 4.2468, 33.6667)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2126A0 #A09B21
analogous
#2165A0 #2126A0 #5C21A0
triadic
#2126A0 #A02126 #26A021
tetradic
#2126A0 #A02165 #A09B21 #21A05C
square
#2126A0 #A02165 #A09B21 #21A05C
split-complementary
#2126A0 #A05C21 #65A021
monochromatic
#0C0E3B #171A6D #2126A0 #2B32D3 #5E63DE

Accessibility & contrast

On white

11.35
#2126A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2126A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2126A0
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2126A0#FFFFFF#000000##FFFFFF
##2126A01.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2126a0;
/* rgb */ color: rgb(33, 38, 160);
/* oklch */ color: oklch(36.6% 0.190 270.6);
Tailwind
colors: {
  custom: {
    50: '#7462bd',
    500: '#2126a0',
    950: '#000000',
  },
}
SCSS
$custom: #2126a0;
$custom-light: #7462bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2126a0",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 160
  },
  "hsl": {
    "h": 237.638,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36647,
    "c": 0.1896,
    "h": 270.6
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#2126A0
secondary
#C2BE5B
accent
#E23FE9
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2126A0

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

Preview Lab → · Contrast checker → · Palette generator →

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