#2D1F80#2D1F80

#2D1F80 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.153 H 280.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2D1F80
RGBrgb(45, 31, 128)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 76%, 50%)
CMYKcmyk(64.8%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.42, 36.01, -52.25)
CIE-LCHlch(20.42, 63.46, 304.57°)
OKLaboklab(32.97% 0.0278 -0.1507)
OKLCHoklch(32.97% 0.153 280.4)
XYZxyz(5.4672, 3.0960, 20.7274)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1F80 #72801F
analogous
#1F4180 #2D1F80 #5D1F80
triadic
#2D1F80 #802D1F #1F802D
tetradic
#2D1F80 #801F41 #72801F #1F805D
square
#2D1F80 #801F41 #72801F #1F805D
split-complementary
#2D1F80 #805D1F #41801F
monochromatic
#0A071D #1C134F #2D1F80 #3E2BB1 #5B47D2

Accessibility & contrast

On white

12.97
#2D1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2D1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1F80
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1F80#FFFFFF#000000##FFFFFF
##2D1F801.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1f80;
/* rgb */ color: rgb(45, 31, 128);
/* oklch */ color: oklch(33.0% 0.153 280.4);
Tailwind
colors: {
  custom: {
    50: '#725da6',
    500: '#2d1f80',
    950: '#000000',
  },
}
SCSS
$custom: #2d1f80;
$custom-light: #725da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1f80",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 248.66,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32971,
    "c": 0.15329,
    "h": 280.4
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#2D1F80
secondary
#A3B348
accent
#E444CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2D1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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