#2126B3#2126B3

#2126B3 is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.8% C 0.212 H 269.6°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#2126B3
RGBrgb(33, 38, 179)
HSLhsl(238, 69%, 42%)
HSVhsv(238, 82%, 70%)
CMYKcmyk(81.6%, 78.8%, 0%, 29.8%)
CIE-LABlab(26.63, 47.92, -73.35)
CIE-LCHlch(26.63, 87.61, 303.16°)
OKLaboklab(38.8% -0.0014 -0.2124)
OKLCHoklch(38.8% 0.212 269.6)
XYZxyz(9.4542, 4.9631, 43.0988)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2126B3 #B3AE21
analogous
#216FB3 #2126B3 #6521B3
triadic
#2126B3 #B32126 #26B321
tetradic
#2126B3 #B3216F #B3AE21 #21B365
square
#2126B3 #B3216F #B3AE21 #21B365
split-complementary
#2126B3 #B36521 #6FB321
monochromatic
#0E104C #171B7F #2126B3 #373DDA #6B6FE4

Accessibility & contrast

On white

10.54
#2126B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2126B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2126B3
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2126B3#FFFFFF#000000##FFFFFF
##2126B31.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2126b3;
/* rgb */ color: rgb(33, 38, 179);
/* oklch */ color: oklch(38.8% 0.212 269.6);
Tailwind
colors: {
  custom: {
    50: '#7963cb',
    500: '#2126b3',
    950: '#000000',
  },
}
SCSS
$custom: #2126b3;
$custom-light: #7963cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2126b3",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 179
  },
  "hsl": {
    "h": 237.945,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.388,
    "c": 0.21245,
    "h": 269.6
  },
  "luminance": 0.04964
}

Semantic roles & 50–950 ramp

primary
#2126B3
secondary
#CAC666
accent
#E63CEC
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2126B3

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

Preview Lab → · Contrast checker → · Palette generator →

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