#2D1FB3#2D1FB3

#2D1FB3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.6% C 0.215 H 273.9°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2D1FB3
RGBrgb(45, 31, 179)
HSLhsl(246, 70%, 41%)
HSVhsv(246, 83%, 70%)
CMYKcmyk(74.9%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.13, 52.10, -74.15)
CIE-LCHlch(26.13, 90.63, 305.09°)
OKLaboklab(38.64% 0.0145 -0.2144)
OKLCHoklch(38.64% 0.215 273.9)
XYZxyz(9.7062, 4.7915, 43.0524)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FB3 #A5B31F
analogous
#1F5BB3 #2D1FB3 #771FB3
triadic
#2D1FB3 #B32D1F #1FB32D
tetradic
#2D1FB3 #B31F5B #A5B31F #1FB377
square
#2D1FB3 #B31F5B #A5B31F #1FB377
split-complementary
#2D1FB3 #B3771F #5BB31F
monochromatic
#130D4B #20167F #2D1FB3 #4333DC #7368E5

Accessibility & contrast

On white

10.72
#2D1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2D1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FB3
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FB3#FFFFFF#000000##FFFFFF
##2D1FB31.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d1fb3;
/* rgb */ color: rgb(45, 31, 179);
/* oklch */ color: oklch(38.6% 0.215 273.9);
Tailwind
colors: {
  custom: {
    50: '#7d60cb',
    500: '#2d1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fb3;
$custom-light: #7d60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fb3",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 245.676,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38637,
    "c": 0.21494,
    "h": 273.9
  },
  "luminance": 0.04793
}

Semantic roles & 50–950 ramp

primary
#2D1FB3
secondary
#C1CA64
accent
#ED3BDC
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2D1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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