#2D1FAC#2D1FAC

#2D1FAC is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.207 H 274.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2D1FAC
RGBrgb(45, 31, 172)
HSLhsl(246, 69%, 40%)
HSVhsv(246, 82%, 67%)
CMYKcmyk(73.8%, 82%, 0%, 32.5%)
CIE-LABlab(25.31, 49.98, -71.32)
CIE-LCHlch(25.31, 87.09, 305.02°)
OKLaboklab(37.83% 0.0163 -0.2062)
OKLCHoklch(37.83% 0.207 274.5)
XYZxyz(9.0161, 4.5155, 39.4181)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1FAC #9EAC1F
analogous
#1F58AC #2D1FAC #731FAC
triadic
#2D1FAC #AC2D1F #1FAC2D
tetradic
#2D1FAC #AC1F58 #9EAC1F #1FAC73
square
#2D1FAC #AC1F58 #9EAC1F #1FAC73
split-complementary
#2D1FAC #AC731F #58AC1F
monochromatic
#120C44 #1F1678 #2D1FAC #402FD9 #6F63E3

Accessibility & contrast

On white

11.03
#2D1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D1FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1FAC
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1FAC#FFFFFF#000000##FFFFFF
##2D1FAC1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0035AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d1fac;
/* rgb */ color: rgb(45, 31, 172);
/* oklch */ color: oklch(37.8% 0.207 274.5);
Tailwind
colors: {
  custom: {
    50: '#7c5fc6',
    500: '#2d1fac',
    950: '#000000',
  },
}
SCSS
$custom: #2d1fac;
$custom-light: #7c5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1fac",
  "rgb": {
    "r": 45,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 245.957,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.20689,
    "h": 274.5
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#2D1FAC
secondary
#BDC85F
accent
#EC3CDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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