#2B217D#2B217D

#2B217D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.148 H 279.4°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2B217D
RGBrgb(43, 33, 125)
HSLhsl(247, 58%, 31%)
HSVhsv(247, 74%, 49%)
CMYKcmyk(65.6%, 73.6%, 0%, 51%)
CIE-LABlab(20.37, 33.55, -50.45)
CIE-LCHlch(20.37, 60.58, 303.62°)
OKLaboklab(32.79% 0.024 -0.1456)
OKLCHoklch(32.79% 0.148 279.4)
XYZxyz(5.2406, 3.0816, 19.7167)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B217D #737D21
analogous
#21457D #2B217D #59217D
triadic
#2B217D #7D2B21 #217D2B
tetradic
#2B217D #7D2145 #737D21 #217D59
square
#2B217D #7D2145 #737D21 #217D59
split-complementary
#2B217D #7D5921 #457D21
monochromatic
#0A071C #1A144D #2B217D #3C2EAD #5849CF

Accessibility & contrast

On white

12.99
#2B217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B217D
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B217D#FFFFFF#000000##FFFFFF
##2B217D1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b217d;
/* rgb */ color: rgb(43, 33, 125);
/* oklch */ color: oklch(32.8% 0.148 279.4);
Tailwind
colors: {
  custom: {
    50: '#705ea4',
    500: '#2b217d',
    950: '#000000',
  },
}
SCSS
$custom: #2b217d;
$custom-light: #705ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b217d",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 246.522,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32794,
    "c": 0.14752,
    "h": 279.4
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#2B217D
secondary
#A5B04A
accent
#E146D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B217D

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

Preview Lab → · Contrast checker → · Palette generator →

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