#2D2181#2D2181

#2D2181 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.152 H 279.9°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2D2181
RGBrgb(45, 33, 129)
HSLhsl(248, 59%, 32%)
HSVhsv(248, 74%, 51%)
CMYKcmyk(65.1%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.94, 35.17, -52.03)
CIE-LCHlch(20.94, 62.80, 304.06°)
OKLaboklab(33.37% 0.0261 -0.1501)
OKLCHoklch(33.37% 0.152 279.9)
XYZxyz(5.5872, 3.2302, 21.0937)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2181 #758121
analogous
#214581 #2D2181 #5D2181
triadic
#2D2181 #812D21 #21812D
tetradic
#2D2181 #812145 #758121 #21815D
square
#2D2181 #812145 #758121 #21815D
split-complementary
#2D2181 #815D21 #458121
monochromatic
#0B0820 #1C1550 #2D2181 #3E2DB2 #5C4BD1

Accessibility & contrast

On white

12.76
#2D2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2D2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2181
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2181#FFFFFF#000000##FFFFFF
##2D21811.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2d2181;
/* rgb */ color: rgb(45, 33, 129);
/* oklch */ color: oklch(33.4% 0.152 279.9);
Tailwind
colors: {
  custom: {
    50: '#725ea7',
    500: '#2d2181',
    950: '#000000',
  },
}
SCSS
$custom: #2d2181;
$custom-light: #725ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2181",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 247.5,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3337,
    "c": 0.15236,
    "h": 279.9
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#2D2181
secondary
#A6B44A
accent
#E245CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D2181

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

Preview Lab → · Contrast checker → · Palette generator →

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