#2B217C#2B217C

#2B217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.146 H 279.5°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#2B217C
RGBrgb(43, 33, 124)
HSLhsl(247, 58%, 31%)
HSVhsv(247, 73%, 49%)
CMYKcmyk(65.3%, 73.4%, 0%, 51.4%)
CIE-LABlab(20.27, 33.21, -49.98)
CIE-LCHlch(20.27, 60.00, 303.60°)
OKLaboklab(32.69% 0.0242 -0.1442)
OKLCHoklch(32.69% 0.146 279.5)
XYZxyz(5.1770, 3.0561, 19.3820)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B217C #727C21
analogous
#21447C #2B217C #58217C
triadic
#2B217C #7C2B21 #217C2B
tetradic
#2B217C #7C2144 #727C21 #217C58
square
#2B217C #7C2144 #727C21 #217C58
split-complementary
#2B217C #7C5821 #447C21
monochromatic
#09071B #1A144C #2B217C #3C2EAC #5849CF

Accessibility & contrast

On white

13.03
#2B217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2B217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B217C
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B217C#FFFFFF#000000##FFFFFF
##2B217C1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b217c;
/* rgb */ color: rgb(43, 33, 124);
/* oklch */ color: oklch(32.7% 0.146 279.5);
Tailwind
colors: {
  custom: {
    50: '#705da3',
    500: '#2b217c',
    950: '#000000',
  },
}
SCSS
$custom: #2b217c;
$custom-light: #705da3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b217c",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 246.593,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32692,
    "c": 0.14619,
    "h": 279.5
  },
  "luminance": 0.03057
}

Semantic roles & 50–950 ramp

primary
#2B217C
secondary
#A4AF4A
accent
#E147D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B217C

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

Preview Lab → · Contrast checker → · Palette generator →

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