#2B219C#2B219C

#2B219C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.187 H 275.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2B219C
RGBrgb(43, 33, 156)
HSLhsl(245, 65%, 37%)
HSVhsv(245, 79%, 61%)
CMYKcmyk(72.4%, 78.8%, 0%, 38.8%)
CIE-LABlab(23.67, 43.82, -64.32)
CIE-LCHlch(23.67, 77.83, 304.27°)
OKLaboklab(36.12% 0.017 -0.186)
OKLCHoklch(36.12% 0.187 275.2)
XYZxyz(7.5389, 4.0009, 31.8210)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B219C #929C21
analogous
#21559C #2B219C #69219C
triadic
#2B219C #9C2B21 #219C2B
tetradic
#2B219C #9C2155 #929C21 #219C69
square
#2B219C #9C2155 #929C21 #219C69
split-complementary
#2B219C #9C6921 #559C21
monochromatic
#0F0C37 #1D1669 #2B219C #392CCF #665BDC

Accessibility & contrast

On white

11.66
#2B219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B219C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B219C#FFFFFF#000000##FFFFFF
##2B219C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00339A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b219c;
/* rgb */ color: rgb(43, 33, 156);
/* oklch */ color: oklch(36.1% 0.187 275.2);
Tailwind
colors: {
  custom: {
    50: '#775fba',
    500: '#2b219c',
    950: '#000000',
  },
}
SCSS
$custom: #2b219c;
$custom-light: #775fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2b219c",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 244.878,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36119,
    "c": 0.18677,
    "h": 275.2
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#2B219C
secondary
#B8C158
accent
#E840DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B219C

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

Preview Lab → · Contrast checker → · Palette generator →

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