#2D1F7B#2D1F7B

#2D1F7B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.147 H 281.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2D1F7B
RGBrgb(45, 31, 123)
HSLhsl(249, 60%, 30%)
HSVhsv(249, 75%, 48%)
CMYKcmyk(63.4%, 74.8%, 0%, 51.8%)
CIE-LABlab(19.91, 34.36, -49.91)
CIE-LCHlch(19.91, 60.59, 304.54°)
OKLaboklab(32.45% 0.0289 -0.1439)
OKLCHoklch(32.45% 0.147 281.4)
XYZxyz(5.1462, 2.9676, 19.0367)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F7B #6D7B1F
analogous
#1F3F7B #2D1F7B #5B1F7B
triadic
#2D1F7B #7B2D1F #1F7B2D
tetradic
#2D1F7B #7B1F3F #6D7B1F #1F7B5B
square
#2D1F7B #7B1F3F #6D7B1F #1F7B5B
split-complementary
#2D1F7B #7B5B1F #3F7B1F
monochromatic
#090619 #1B134A #2D1F7B #3F2BAC #5A44D0

Accessibility & contrast

On white

13.18
#2D1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2D1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F7B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F7B#FFFFFF#000000##FFFFFF
##2D1F7B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d1f7b;
/* rgb */ color: rgb(45, 31, 123);
/* oklch */ color: oklch(32.5% 0.147 281.4);
Tailwind
colors: {
  custom: {
    50: '#705ca2',
    500: '#2d1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f7b;
$custom-light: #705ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f7b",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 249.13,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32454,
    "c": 0.14679,
    "h": 281.4
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#2D1F7B
secondary
#9FAE48
accent
#E345CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2D1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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