#2D1F9E#2D1F9E

#2D1F9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.190 H 276.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2D1F9E
RGBrgb(45, 31, 158)
HSLhsl(247, 67%, 37%)
HSVhsv(247, 80%, 62%)
CMYKcmyk(71.5%, 80.4%, 0%, 38%)
CIE-LABlab(23.69, 45.66, -65.51)
CIE-LCHlch(23.69, 79.85, 304.87°)
OKLaboklab(36.23% 0.0201 -0.1894)
OKLCHoklch(36.23% 0.19 276.1)
XYZxyz(7.7417, 4.0058, 32.7063)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F9E #909E1F
analogous
#1F519E #2D1F9E #6D1F9E
triadic
#2D1F9E #9E2D1F #1F9E2D
tetradic
#2D1F9E #9E1F51 #909E1F #1F9E6D
square
#2D1F9E #9E1F51 #909E1F #1F9E6D
split-complementary
#2D1F9E #9E6D1F #519E1F
monochromatic
#100B38 #1E156B #2D1F9E #3C29D1 #6859DE

Accessibility & contrast

On white

11.66
#2D1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2D1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F9E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F9E#FFFFFF#000000##FFFFFF
##2D1F9E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d1f9e;
/* rgb */ color: rgb(45, 31, 158);
/* oklch */ color: oklch(36.2% 0.190 276.1);
Tailwind
colors: {
  custom: {
    50: '#785ebc',
    500: '#2d1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f9e;
$custom-light: #785ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f9e",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 246.614,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36234,
    "c": 0.19044,
    "h": 276.1
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#2D1F9E
secondary
#B6C256
accent
#EA3ED7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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