#2F1FA7#2F1FA7

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

Color values

HEX#2F1FA7
RGBrgb(47, 31, 167)
HSLhsl(247, 69%, 39%)
HSVhsv(247, 81%, 65%)
CMYKcmyk(71.9%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.87, 48.61, -69.03)
CIE-LCHlch(24.87, 84.42, 305.15°)
OKLaboklab(37.39% 0.0204 -0.1995)
OKLCHoklch(37.39% 0.201 275.8)
XYZxyz(8.6350, 4.3735, 36.9408)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FA7 #97A71F
analogous
#1F53A7 #2F1FA7 #731FA7
triadic
#2F1FA7 #A72F1F #1FA72F
tetradic
#2F1FA7 #A71F53 #97A71F #1FA773
square
#2F1FA7 #A71F53 #97A71F #1FA773
split-complementary
#2F1FA7 #A7731F #53A71F
monochromatic
#120C40 #201573 #2F1FA7 #402BD8 #6E5FE1

Accessibility & contrast

On white

11.20
#2F1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1FA7
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FA7#FFFFFF#000000##FFFFFF
##2F1FA71.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1fa7;
/* rgb */ color: rgb(47, 31, 167);
/* oklch */ color: oklch(37.4% 0.201 275.8);
Tailwind
colors: {
  custom: {
    50: '#7b5fc3',
    500: '#2f1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fa7;
$custom-light: #7b5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fa7",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 247.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37393,
    "c": 0.20058,
    "h": 275.8
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#2F1FA7
secondary
#B9C65C
accent
#EC3CD7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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