#2126A8#2126A8

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

Color values

HEX#2126A8
RGBrgb(33, 38, 168)
HSLhsl(238, 67%, 39%)
HSVhsv(238, 80%, 66%)
CMYKcmyk(80.4%, 77.4%, 0%, 34.1%)
CIE-LABlab(25.37, 44.27, -68.83)
CIE-LCHlch(25.37, 81.84, 302.75°)
OKLaboklab(37.55% 0.0005 -0.1994)
OKLCHoklch(37.55% 0.199 270.2)
XYZxyz(8.3858, 4.5358, 37.4717)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2126A8 #A8A321
analogous
#216AA8 #2126A8 #6021A8
triadic
#2126A8 #A82126 #26A821
tetradic
#2126A8 #A8216A #A8A321 #21A860
square
#2126A8 #A8216A #A8A321 #21A860
split-complementary
#2126A8 #A86021 #6AA821
monochromatic
#0D0F42 #171A75 #2126A8 #3036D6 #6368E0

Accessibility & contrast

On white

11.01
#2126A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2126A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2126A8
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2126A8#FFFFFF#000000##FFFFFF
##2126A81.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2126a8;
/* rgb */ color: rgb(33, 38, 168);
/* oklch */ color: oklch(37.5% 0.199 270.2);
Tailwind
colors: {
  custom: {
    50: '#7662c3',
    500: '#2126a8',
    950: '#000000',
  },
}
SCSS
$custom: #2126a8;
$custom-light: #7662c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2126a8",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 237.778,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37546,
    "c": 0.19936,
    "h": 270.2
  },
  "luminance": 0.04537
}

Semantic roles & 50–950 ramp

primary
#2126A8
secondary
#C5C25F
accent
#E43EEA
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #2126A8

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

Preview Lab → · Contrast checker → · Palette generator →

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