#2126AD#2126AD

#2126AD is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.1% C 0.205 H 269.9°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2126AD
RGBrgb(33, 38, 173)
HSLhsl(238, 68%, 40%)
HSVhsv(238, 81%, 68%)
CMYKcmyk(80.9%, 78%, 0%, 32.2%)
CIE-LABlab(25.94, 45.94, -70.90)
CIE-LCHlch(25.94, 84.48, 302.94°)
OKLaboklab(38.11% -0.0003 -0.2054)
OKLCHoklch(38.11% 0.205 269.9)
XYZxyz(8.8606, 4.7257, 39.9722)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2126AD #ADA821
analogous
#216CAD #2126AD #6221AD
triadic
#2126AD #AD2126 #26AD21
tetradic
#2126AD #AD216C #ADA821 #21AD62
square
#2126AD #AD216C #ADA821 #21AD62
split-complementary
#2126AD #AD6221 #6CAD21
monochromatic
#0D0F46 #171B7A #2126AD #3339D8 #666BE2

Accessibility & contrast

On white

10.79
#2126AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2126AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2126AD
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2126AD#FFFFFF#000000##FFFFFF
##2126AD1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B1
Deuteranopia (green-blind)
#0036AB
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2126ad;
/* rgb */ color: rgb(33, 38, 173);
/* oklch */ color: oklch(38.1% 0.205 269.9);
Tailwind
colors: {
  custom: {
    50: '#7763c7',
    500: '#2126ad',
    950: '#000000',
  },
}
SCSS
$custom: #2126ad;
$custom-light: #7763c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2126ad",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 173
  },
  "hsl": {
    "h": 237.857,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38113,
    "c": 0.20536,
    "h": 269.9
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

primary
#2126AD
secondary
#C7C462
accent
#E53DEB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2126AD

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

Preview Lab → · Contrast checker → · Palette generator →

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