#2B217B#2B217B

#2B217B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.145 H 279.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2B217B
RGBrgb(43, 33, 123)
HSLhsl(247, 58%, 31%)
HSVhsv(247, 73%, 48%)
CMYKcmyk(65%, 73.2%, 0%, 51.8%)
CIE-LABlab(20.17, 32.87, -49.50)
CIE-LCHlch(20.17, 59.42, 303.58°)
OKLaboklab(32.59% 0.0244 -0.1428)
OKLCHoklch(32.59% 0.145 279.7)
XYZxyz(5.1141, 3.0310, 19.0506)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B217B #717B21
analogous
#21447B #2B217B #58217B
triadic
#2B217B #7B2B21 #217B2B
tetradic
#2B217B #7B2144 #717B21 #217B58
square
#2B217B #7B2144 #717B21 #217B58
split-complementary
#2B217B #7B5821 #447B21
monochromatic
#09071A #1A144B #2B217B #3C2EAB #5748CE

Accessibility & contrast

On white

13.07
#2B217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B217B
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B217B#FFFFFF#000000##FFFFFF
##2B217B1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b217b;
/* rgb */ color: rgb(43, 33, 123);
/* oklch */ color: oklch(32.6% 0.145 279.7);
Tailwind
colors: {
  custom: {
    50: '#6f5da2',
    500: '#2b217b',
    950: '#000000',
  },
}
SCSS
$custom: #2b217b;
$custom-light: #6f5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b217b",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 246.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32591,
    "c": 0.14486,
    "h": 279.7
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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