#2F1DA6#2F1DA6

#2F1DA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.201 H 276.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2F1DA6
RGBrgb(47, 29, 166)
HSLhsl(248, 70%, 38%)
HSVhsv(248, 83%, 65%)
CMYKcmyk(71.7%, 82.5%, 0%, 34.9%)
CIE-LABlab(24.43, 49.24, -69.14)
CIE-LCHlch(24.43, 84.88, 305.46°)
OKLaboklab(37.06% 0.0215 -0.1998)
OKLCHoklch(37.06% 0.201 276.1)
XYZxyz(8.4923, 4.2354, 36.4390)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1DA6 #94A61D
analogous
#1D4FA6 #2F1DA6 #731DA6
triadic
#2F1DA6 #A62F1D #1DA62F
tetradic
#2F1DA6 #A61D4F #94A61D #1DA673
square
#2F1DA6 #A61D4F #94A61D #1DA673
split-complementary
#2F1DA6 #A6731D #4FA61D
monochromatic
#110B3E #201472 #2F1DA6 #3E27D9 #6D5BE2

Accessibility & contrast

On white

11.37
#2F1DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1DA6
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1DA6#FFFFFF#000000##FFFFFF
##2F1DA61.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f1da6;
/* rgb */ color: rgb(47, 29, 166);
/* oklch */ color: oklch(37.1% 0.201 276.1);
Tailwind
colors: {
  custom: {
    50: '#7b5ec2',
    500: '#2f1da6',
    950: '#000000',
  },
}
SCSS
$custom: #2f1da6;
$custom-light: #7b5ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1da6",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 247.883,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37059,
    "c": 0.20099,
    "h": 276.1
  },
  "luminance": 0.04236
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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