#2126BD#2126BD

#2126BD is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 40.0% C 0.224 H 269.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2126BD
RGBrgb(33, 38, 189)
HSLhsl(238, 70%, 44%)
HSVhsv(238, 83%, 74%)
CMYKcmyk(82.5%, 79.9%, 0%, 25.9%)
CIE-LABlab(27.80, 51.15, -77.35)
CIE-LCHlch(27.80, 92.74, 303.47°)
OKLaboklab(39.96% -0.0033 -0.224)
OKLCHoklch(39.96% 0.224 269.2)
XYZxyz(10.5025, 5.3824, 48.6196)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2126BD #BDB821
analogous
#2174BD #2126BD #6A21BD
triadic
#2126BD #BD2126 #26BD21
tetradic
#2126BD #BD2174 #BDB821 #21BD6A
square
#2126BD #BD2174 #BDB821 #21BD6A
split-complementary
#2126BD #BD6A21 #74BD21
monochromatic
#0F1155 #181C89 #2126BD #3E43DD #7276E6

Accessibility & contrast

On white

10.11
#2126BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2126BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2126BD
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2126BD#FFFFFF#000000##FFFFFF
##2126BD1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049C1
Deuteranopia (green-blind)
#0039BA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2126bd;
/* rgb */ color: rgb(33, 38, 189);
/* oklch */ color: oklch(40.0% 0.224 269.2);
Tailwind
colors: {
  custom: {
    50: '#7b64d2',
    500: '#2126bd',
    950: '#000000',
  },
}
SCSS
$custom: #2126bd;
$custom-light: #7b64d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2126bd",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 189
  },
  "hsl": {
    "h": 238.077,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.39956,
    "c": 0.22407,
    "h": 269.2
  },
  "luminance": 0.05384
}

Semantic roles & 50–950 ramp

primary
#2126BD
secondary
#CDCA6D
accent
#E73BED
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2126BD

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

Preview Lab → · Contrast checker → · Palette generator →

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