#2D1F7E#2D1F7E

#2D1F7E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.151 H 280.8°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2D1F7E
RGBrgb(45, 31, 126)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 75%, 49%)
CMYKcmyk(64.3%, 75.4%, 0%, 50.6%)
CIE-LABlab(20.22, 35.35, -51.32)
CIE-LCHlch(20.22, 62.32, 304.56°)
OKLaboklab(32.76% 0.0282 -0.148)
OKLCHoklch(32.76% 0.151 280.8)
XYZxyz(5.3369, 3.0438, 20.0409)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F7E #707E1F
analogous
#1F407E #2D1F7E #5C1F7E
triadic
#2D1F7E #7E2D1F #1F7E2D
tetradic
#2D1F7E #7E1F40 #707E1F #1F7E5C
square
#2D1F7E #7E1F40 #707E1F #1F7E5C
split-complementary
#2D1F7E #7E5C1F #407E1F
monochromatic
#0A071C #1B134D #2D1F7E #3F2BAF #5A46D1

Accessibility & contrast

On white

13.05
#2D1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F7E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F7E#FFFFFF#000000##FFFFFF
##2D1F7E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1f7e;
/* rgb */ color: rgb(45, 31, 126);
/* oklch */ color: oklch(32.8% 0.151 280.8);
Tailwind
colors: {
  custom: {
    50: '#715ca4',
    500: '#2d1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f7e;
$custom-light: #715ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f7e",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 248.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32763,
    "c": 0.1507,
    "h": 280.8
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#2D1F7E
secondary
#A2B148
accent
#E444CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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