#2D217F#2D217F

#2D217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.150 H 280.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2D217F
RGBrgb(45, 33, 127)
HSLhsl(248, 59%, 31%)
HSVhsv(248, 74%, 50%)
CMYKcmyk(64.6%, 74%, 0%, 50.2%)
CIE-LABlab(20.74, 34.51, -51.10)
CIE-LCHlch(20.74, 61.66, 304.03°)
OKLaboklab(33.17% 0.0265 -0.1474)
OKLCHoklch(33.17% 0.15 280.2)
XYZxyz(5.4556, 3.1775, 20.4004)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D217F #737F21
analogous
#21447F #2D217F #5C217F
triadic
#2D217F #7F2D21 #217F2D
tetradic
#2D217F #7F2144 #737F21 #217F5C
square
#2D217F #7F2144 #737F21 #217F5C
split-complementary
#2D217F #7F5C21 #447F21
monochromatic
#0B081E #1C144E #2D217F #3E2EB0 #5B4AD0

Accessibility & contrast

On white

12.84
#2D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D217F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D217F#FFFFFF#000000##FFFFFF
##2D217F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.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: #2d217f;
/* rgb */ color: rgb(45, 33, 127);
/* oklch */ color: oklch(33.2% 0.150 280.2);
Tailwind
colors: {
  custom: {
    50: '#715ea5',
    500: '#2d217f',
    950: '#000000',
  },
}
SCSS
$custom: #2d217f;
$custom-light: #715ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d217f",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 247.66,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33165,
    "c": 0.14974,
    "h": 280.2
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#2D217F
secondary
#A4B24A
accent
#E246CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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