#2B217E#2B217E

#2B217E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.149 H 279.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2B217E
RGBrgb(43, 33, 126)
HSLhsl(246, 58%, 31%)
HSVhsv(246, 74%, 49%)
CMYKcmyk(65.9%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.47, 33.89, -50.92)
CIE-LCHlch(20.47, 61.16, 303.65°)
OKLaboklab(32.9% 0.0238 -0.1469)
OKLCHoklch(32.9% 0.149 279.2)
XYZxyz(5.3048, 3.1072, 20.0548)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B217E #747E21
analogous
#21457E #2B217E #59217E
triadic
#2B217E #7E2B21 #217E2B
tetradic
#2B217E #7E2145 #747E21 #217E59
square
#2B217E #7E2145 #747E21 #217E59
split-complementary
#2B217E #7E5921 #457E21
monochromatic
#0A081D #1A144E #2B217E #3C2EAE #584AD0

Accessibility & contrast

On white

12.95
#2B217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B217E
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B217E#FFFFFF#000000##FFFFFF
##2B217E1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b217e;
/* rgb */ color: rgb(43, 33, 126);
/* oklch */ color: oklch(32.9% 0.149 279.2);
Tailwind
colors: {
  custom: {
    50: '#705ea4',
    500: '#2b217e',
    950: '#000000',
  },
}
SCSS
$custom: #2b217e;
$custom-light: #705ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b217e",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 246.452,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32897,
    "c": 0.14884,
    "h": 279.2
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#2B217E
secondary
#A6B14A
accent
#E246D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B217E

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

Preview Lab → · Contrast checker → · Palette generator →

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