#2126A6#2126A6

#2126A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.197 H 270.3°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#2126A6
RGBrgb(33, 38, 166)
HSLhsl(238, 67%, 39%)
HSVhsv(238, 80%, 65%)
CMYKcmyk(80.1%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.14, 43.60, -68.00)
CIE-LCHlch(25.14, 80.77, 302.67°)
OKLaboklab(37.32% 0.0009 -0.1969)
OKLCHoklch(37.32% 0.197 270.3)
XYZxyz(8.2009, 4.4618, 36.4980)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2126A6 #A6A121
analogous
#2169A6 #2126A6 #5F21A6
triadic
#2126A6 #A62126 #26A621
tetradic
#2126A6 #A62169 #A6A121 #21A65F
square
#2126A6 #A62169 #A6A121 #21A65F
split-complementary
#2126A6 #A65F21 #69A621
monochromatic
#0D0F40 #171A73 #2126A6 #2F35D6 #6266E0

Accessibility & contrast

On white

11.10
#2126A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2126A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2126A6
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2126A6#FFFFFF#000000##FFFFFF
##2126A61.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2126a6;
/* rgb */ color: rgb(33, 38, 166);
/* oklch */ color: oklch(37.3% 0.197 270.3);
Tailwind
colors: {
  custom: {
    50: '#7662c2',
    500: '#2126a6',
    950: '#000000',
  },
}
SCSS
$custom: #2126a6;
$custom-light: #7662c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2126a6",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 237.744,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3732,
    "c": 0.19693,
    "h": 270.3
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

primary
#2126A6
secondary
#C5C15E
accent
#E33EEA
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #2126A6

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

Preview Lab → · Contrast checker → · Palette generator →

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