#2F1DA7#2F1DA7

#2F1DA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.202 H 276.0°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2F1DA7
RGBrgb(47, 29, 167)
HSLhsl(248, 70%, 38%)
HSVhsv(248, 83%, 65%)
CMYKcmyk(71.9%, 82.6%, 0%, 34.5%)
CIE-LABlab(24.55, 49.54, -69.55)
CIE-LCHlch(24.55, 85.39, 305.46°)
OKLaboklab(37.17% 0.0212 -0.201)
OKLCHoklch(37.17% 0.202 276)
XYZxyz(8.5844, 4.2723, 36.9240)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1DA7 #95A71D
analogous
#1D50A7 #2F1DA7 #741DA7
triadic
#2F1DA7 #A72F1D #1DA72F
tetradic
#2F1DA7 #A71D50 #95A71D #1DA774
square
#2F1DA7 #A71D50 #95A71D #1DA774
split-complementary
#2F1DA7 #A7741D #50A71D
monochromatic
#120B3F #201473 #2F1DA7 #3F28DA #6D5CE3

Accessibility & contrast

On white

11.32
#2F1DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F1DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1DA7
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1DA7#FFFFFF#000000##FFFFFF
##2F1DA71.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1da7;
/* rgb */ color: rgb(47, 29, 167);
/* oklch */ color: oklch(37.2% 0.202 276.0);
Tailwind
colors: {
  custom: {
    50: '#7b5ec3',
    500: '#2f1da7',
    950: '#000000',
  },
}
SCSS
$custom: #2f1da7;
$custom-light: #7b5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1da7",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 167
  },
  "hsl": {
    "h": 247.826,
    "s": 70.408,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37173,
    "c": 0.20214,
    "h": 276
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#2F1DA7
secondary
#B8C759
accent
#ED3BD6
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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