#2B219F#2B219F

#2B219F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.190 H 274.9°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2B219F
RGBrgb(43, 33, 159)
HSLhsl(245, 66%, 38%)
HSVhsv(245, 79%, 62%)
CMYKcmyk(73%, 79.2%, 0%, 37.6%)
CIE-LABlab(24.01, 44.78, -65.60)
CIE-LCHlch(24.01, 79.42, 304.32°)
OKLaboklab(36.45% 0.0163 -0.1897)
OKLCHoklch(36.45% 0.19 274.9)
XYZxyz(7.7961, 4.1037, 33.1754)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B219F #959F21
analogous
#21569F #2B219F #6A219F
triadic
#2B219F #9F2B21 #219F2B
tetradic
#2B219F #9F2156 #959F21 #219F6A
square
#2B219F #9F2156 #959F21 #219F6A
split-complementary
#2B219F #9F6A21 #569F21
monochromatic
#100C3A #1D166C #2B219F #392CD2 #675DDD

Accessibility & contrast

On white

11.53
#2B219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2B219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B219F
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B219F#FFFFFF#000000##FFFFFF
##2B219F1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b219f;
/* rgb */ color: rgb(43, 33, 159);
/* oklch */ color: oklch(36.5% 0.190 274.9);
Tailwind
colors: {
  custom: {
    50: '#785fbd',
    500: '#2b219f',
    950: '#000000',
  },
}
SCSS
$custom: #2b219f;
$custom-light: #785fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b219f",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 244.762,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36454,
    "c": 0.19039,
    "h": 274.9
  },
  "luminance": 0.04105
}

Semantic roles & 50–950 ramp

primary
#2B219F
secondary
#BAC25A
accent
#E93FDB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B219F

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

Preview Lab → · Contrast checker → · Palette generator →

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