#2D1FA8#2D1FA8

#2D1FA8 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.4% C 0.202 H 274.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2D1FA8
RGBrgb(45, 31, 168)
HSLhsl(246, 69%, 39%)
HSVhsv(246, 82%, 66%)
CMYKcmyk(73.2%, 81.5%, 0%, 34.1%)
CIE-LABlab(24.84, 48.76, -69.68)
CIE-LCHlch(24.84, 85.05, 304.98°)
OKLaboklab(37.37% 0.0174 -0.2015)
OKLCHoklch(37.37% 0.202 274.9)
XYZxyz(8.6377, 4.3642, 37.4253)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FA8 #9AA81F
analogous
#1F56A8 #2D1FA8 #721FA8
triadic
#2D1FA8 #A82D1F #1FA82D
tetradic
#2D1FA8 #A81F56 #9AA81F #1FA872
square
#2D1FA8 #A81F56 #9AA81F #1FA872
split-complementary
#2D1FA8 #A8721F #56A81F
monochromatic
#110C41 #1F1574 #2D1FA8 #3E2CD8 #6D60E2

Accessibility & contrast

On white

11.21
#2D1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FA8
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FA8#FFFFFF#000000##FFFFFF
##2D1FA81.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d1fa8;
/* rgb */ color: rgb(45, 31, 168);
/* oklch */ color: oklch(37.4% 0.202 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b5fc3',
    500: '#2d1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fa8;
$custom-light: #7b5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fa8",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 246.131,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37369,
    "c": 0.20224,
    "h": 274.9
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#2D1FA8
secondary
#BBC65D
accent
#EC3CDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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