#2B219E#2B219E

#2B219E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.189 H 275.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2B219E
RGBrgb(43, 33, 158)
HSLhsl(245, 65%, 37%)
HSVhsv(245, 79%, 62%)
CMYKcmyk(72.8%, 79.1%, 0%, 38%)
CIE-LABlab(23.90, 44.46, -65.17)
CIE-LCHlch(23.90, 78.89, 304.30°)
OKLaboklab(36.34% 0.0165 -0.1885)
OKLCHoklch(36.34% 0.189 275)
XYZxyz(7.7096, 4.0692, 32.7202)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B219E #949E21
analogous
#21569E #2B219E #6A219E
triadic
#2B219E #9E2B21 #219E2B
tetradic
#2B219E #9E2156 #949E21 #219E6A
square
#2B219E #9E2156 #949E21 #219E6A
split-complementary
#2B219E #9E6A21 #569E21
monochromatic
#0F0C39 #1D166B #2B219E #392CD1 #675CDD

Accessibility & contrast

On white

11.58
#2B219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2B219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B219E
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B219E#FFFFFF#000000##FFFFFF
##2B219E1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b219e;
/* rgb */ color: rgb(43, 33, 158);
/* oklch */ color: oklch(36.3% 0.189 275.0);
Tailwind
colors: {
  custom: {
    50: '#775fbc',
    500: '#2b219e',
    950: '#000000',
  },
}
SCSS
$custom: #2b219e;
$custom-light: #775fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b219e",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 244.8,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36342,
    "c": 0.18918,
    "h": 275
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#2B219E
secondary
#B9C159
accent
#E83FDB
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B219E

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

Preview Lab → · Contrast checker → · Palette generator →

#2B219E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva