#2F1FA6#2F1FA6

#2F1FA6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.3% C 0.199 H 276.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1FA6
RGBrgb(47, 31, 166)
HSLhsl(247, 69%, 39%)
HSVhsv(247, 81%, 65%)
CMYKcmyk(71.7%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.75, 48.31, -68.61)
CIE-LCHlch(24.75, 83.91, 305.15°)
OKLaboklab(37.28% 0.0207 -0.1983)
OKLCHoklch(37.28% 0.199 276)
XYZxyz(8.5430, 4.3367, 36.4558)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FA6 #96A61F
analogous
#1F52A6 #2F1FA6 #721FA6
triadic
#2F1FA6 #A62F1F #1FA62F
tetradic
#2F1FA6 #A61F52 #96A61F #1FA672
square
#2F1FA6 #A61F52 #96A61F #1FA672
split-complementary
#2F1FA6 #A6721F #52A61F
monochromatic
#120C3F #201572 #2F1FA6 #3F2BD7 #6E5EE1

Accessibility & contrast

On white

11.25
#2F1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1FA6
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FA6#FFFFFF#000000##FFFFFF
##2F1FA61.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f1fa6;
/* rgb */ color: rgb(47, 31, 166);
/* oklch */ color: oklch(37.3% 0.199 276.0);
Tailwind
colors: {
  custom: {
    50: '#7b5fc2',
    500: '#2f1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fa6;
$custom-light: #7b5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fa6",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 247.111,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3728,
    "c": 0.19941,
    "h": 276
  },
  "luminance": 0.04337
}

Semantic roles & 50–950 ramp

primary
#2F1FA6
secondary
#B9C55B
accent
#EB3CD7
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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