#2B217A#2B217A

#2B217A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.144 H 279.9°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2B217A
RGBrgb(43, 33, 122)
HSLhsl(247, 57%, 30%)
HSVhsv(247, 73%, 48%)
CMYKcmyk(64.8%, 73%, 0%, 52.2%)
CIE-LABlab(20.07, 32.53, -49.03)
CIE-LCHlch(20.07, 58.84, 303.56°)
OKLaboklab(32.49% 0.0246 -0.1414)
OKLCHoklch(32.49% 0.144 279.9)
XYZxyz(5.0519, 3.0061, 18.7226)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B217A #707A21
analogous
#21437A #2B217A #58217A
triadic
#2B217A #7A2B21 #217A2B
tetradic
#2B217A #7A2143 #707A21 #217A58
square
#2B217A #7A2143 #707A21 #217A58
split-complementary
#2B217A #7A5821 #437A21
monochromatic
#09071A #1A144A #2B217A #3C2EAA #5748CD

Accessibility & contrast

On white

13.12
#2B217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B217A
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B217A#FFFFFF#000000##FFFFFF
##2B217A1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b217a;
/* rgb */ color: rgb(43, 33, 122);
/* oklch */ color: oklch(32.5% 0.144 279.9);
Tailwind
colors: {
  custom: {
    50: '#6f5da1',
    500: '#2b217a',
    950: '#000000',
  },
}
SCSS
$custom: #2b217a;
$custom-light: #6f5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b217a",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 246.742,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32489,
    "c": 0.14352,
    "h": 279.9
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#2B217A
secondary
#A2AD4A
accent
#E147CF
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B217A

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

Preview Lab → · Contrast checker → · Palette generator →

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