#2D1F93#2D1F93

#2D1F93 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.177 H 277.5°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2D1F93
RGBrgb(45, 31, 147)
HSLhsl(247, 65%, 35%)
HSVhsv(247, 79%, 58%)
CMYKcmyk(69.4%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.46, 42.18, -60.79)
CIE-LCHlch(22.46, 73.99, 304.76°)
OKLaboklab(35.01% 0.023 -0.1756)
OKLCHoklch(35.01% 0.177 277.5)
XYZxyz(6.8369, 3.6438, 27.9411)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F93 #85931F
analogous
#1F4B93 #2D1F93 #671F93
triadic
#2D1F93 #932D1F #1F932D
tetradic
#2D1F93 #931F4B #85931F #1F9367
square
#2D1F93 #931F4B #85931F #1F9367
split-complementary
#2D1F93 #93671F #4B931F
monochromatic
#0E0A2E #1E1460 #2D1F93 #3C2AC6 #6252DA

Accessibility & contrast

On white

12.15
#2D1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F93
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F93#FFFFFF#000000##FFFFFF
##2D1F931.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003191
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d1f93;
/* rgb */ color: rgb(45, 31, 147);
/* oklch */ color: oklch(35.0% 0.177 277.5);
Tailwind
colors: {
  custom: {
    50: '#765eb4',
    500: '#2d1f93',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f93;
$custom-light: #765eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f93",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 247.241,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3501,
    "c": 0.17714,
    "h": 277.5
  },
  "luminance": 0.03644
}

Semantic roles & 50–950 ramp

primary
#2D1F93
secondary
#B0BE50
accent
#E840D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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