#2D1F9F#2D1F9F

#2D1F9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.192 H 275.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#2D1F9F
RGBrgb(45, 31, 159)
HSLhsl(247, 67%, 37%)
HSVhsv(247, 81%, 62%)
CMYKcmyk(71.7%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.80, 45.97, -65.93)
CIE-LCHlch(23.80, 80.38, 304.89°)
OKLaboklab(36.35% 0.0199 -0.1906)
OKLCHoklch(36.35% 0.192 275.9)
XYZxyz(7.8281, 4.0403, 33.1615)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F9F #919F1F
analogous
#1F519F #2D1F9F #6D1F9F
triadic
#2D1F9F #9F2D1F #1F9F2D
tetradic
#2D1F9F #9F1F51 #919F1F #1F9F6D
square
#2D1F9F #9F1F51 #919F1F #1F9F6D
split-complementary
#2D1F9F #9F6D1F #519F1F
monochromatic
#100B39 #1F156C #2D1F9F #3B29D2 #685ADF

Accessibility & contrast

On white

11.61
#2D1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2D1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F9F
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F9F#FFFFFF#000000##FFFFFF
##2D1F9F1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d1f9f;
/* rgb */ color: rgb(45, 31, 159);
/* oklch */ color: oklch(36.3% 0.192 275.9);
Tailwind
colors: {
  custom: {
    50: '#785ebd',
    500: '#2d1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f9f;
$custom-light: #785ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f9f",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 246.563,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36347,
    "c": 0.19163,
    "h": 275.9
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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