#2D1F75#2D1F75

#2D1F75 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.139 H 282.5°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2D1F75
RGBrgb(45, 31, 117)
HSLhsl(250, 58%, 29%)
HSVhsv(250, 74%, 46%)
CMYKcmyk(61.5%, 73.5%, 0%, 54.1%)
CIE-LABlab(19.32, 32.36, -47.06)
CIE-LCHlch(19.32, 57.11, 304.52°)
OKLaboklab(31.85% 0.0302 -0.1355)
OKLCHoklch(31.85% 0.139 282.5)
XYZxyz(4.7821, 2.8219, 17.1189)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F75 #67751F
analogous
#1F3C75 #2D1F75 #581F75
triadic
#2D1F75 #752D1F #1F752D
tetradic
#2D1F75 #751F3C #67751F #1F7558
square
#2D1F75 #751F3C #67751F #1F7558
split-complementary
#2D1F75 #75581F #3C751F
monochromatic
#090618 #1A1245 #2D1F75 #402CA5 #5842CD

Accessibility & contrast

On white

13.42
#2D1F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D1F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F75
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F75#FFFFFF#000000##FFFFFF
##2D1F751.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d1f75;
/* rgb */ color: rgb(45, 31, 117);
/* oklch */ color: oklch(31.8% 0.139 282.5);
Tailwind
colors: {
  custom: {
    50: '#6f5c9e',
    500: '#2d1f75',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f75;
$custom-light: #6f5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f75",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 249.767,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31847,
    "c": 0.13887,
    "h": 282.5
  },
  "luminance": 0.02822
}

Semantic roles & 50–950 ramp

primary
#2D1F75
secondary
#99A947
accent
#E146C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2D1F75

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

Preview Lab → · Contrast checker → · Palette generator →

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