#2B217F#2B217F

#2B217F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.150 H 279.0°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2B217F
RGBrgb(43, 33, 127)
HSLhsl(246, 59%, 31%)
HSVhsv(246, 74%, 50%)
CMYKcmyk(66.1%, 74%, 0%, 50.2%)
CIE-LABlab(20.57, 34.23, -51.38)
CIE-LCHlch(20.57, 61.74, 303.67°)
OKLaboklab(33% 0.0236 -0.1483)
OKLCHoklch(33% 0.15 279)
XYZxyz(5.3697, 3.1332, 20.3964)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B217F #757F21
analogous
#21467F #2B217F #5A217F
triadic
#2B217F #7F2B21 #217F2B
tetradic
#2B217F #7F2146 #757F21 #217F5A
square
#2B217F #7F2146 #757F21 #217F5A
split-complementary
#2B217F #7F5A21 #467F21
monochromatic
#0A081E #1B144E #2B217F #3B2EB0 #594AD0

Accessibility & contrast

On white

12.91
#2B217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B217F
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B217F#FFFFFF#000000##FFFFFF
##2B217F1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b217f;
/* rgb */ color: rgb(43, 33, 127);
/* oklch */ color: oklch(33.0% 0.150 279.0);
Tailwind
colors: {
  custom: {
    50: '#705ea5',
    500: '#2b217f',
    950: '#000000',
  },
}
SCSS
$custom: #2b217f;
$custom-light: #705ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b217f",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 246.383,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33,
    "c": 0.15016,
    "h": 279
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B217F

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

Preview Lab → · Contrast checker → · Palette generator →

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