#2F1FAC#2F1FAC

#2F1FAC is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.206 H 275.3°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2F1FAC
RGBrgb(47, 31, 172)
HSLhsl(247, 69%, 40%)
HSVhsv(247, 82%, 67%)
CMYKcmyk(72.7%, 82%, 0%, 32.5%)
CIE-LABlab(25.45, 50.13, -71.08)
CIE-LCHlch(25.45, 86.98, 305.19°)
OKLaboklab(37.96% 0.019 -0.2055)
OKLCHoklch(37.96% 0.206 275.3)
XYZxyz(9.1062, 4.5620, 39.4224)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FAC #9CAC1F
analogous
#1F55AC #2F1FAC #761FAC
triadic
#2F1FAC #AC2F1F #1FAC2F
tetradic
#2F1FAC #AC1F55 #9CAC1F #1FAC76
square
#2F1FAC #AC1F55 #9CAC1F #1FAC76
split-complementary
#2F1FAC #AC761F #55AC1F
monochromatic
#130C44 #211678 #2F1FAC #422FD9 #7163E3

Accessibility & contrast

On white

10.98
#2F1FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F1FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FAC
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FAC#FFFFFF#000000##FFFFFF
##2F1FAC1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1fac;
/* rgb */ color: rgb(47, 31, 172);
/* oklch */ color: oklch(38.0% 0.206 275.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fc6',
    500: '#2f1fac',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fac;
$custom-light: #7c5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fac",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 246.809,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37963,
    "c": 0.20639,
    "h": 275.3
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

primary
#2F1FAC
secondary
#BCC85F
accent
#EC3CD8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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