#2F1FB0#2F1FB0

#2F1FB0 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.4% C 0.211 H 274.9°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1FB0
RGBrgb(47, 31, 176)
HSLhsl(247, 70%, 41%)
HSVhsv(247, 82%, 69%)
CMYKcmyk(73.3%, 82.4%, 0%, 31%)
CIE-LABlab(25.92, 51.34, -72.71)
CIE-LCHlch(25.92, 89.01, 305.22°)
OKLaboklab(38.42% 0.0179 -0.2102)
OKLCHoklch(38.42% 0.211 274.9)
XYZxyz(9.4962, 4.7180, 41.4761)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FB0 #A0B01F
analogous
#1F57B0 #2F1FB0 #771FB0
triadic
#2F1FB0 #B02F1F #1FB02F
tetradic
#2F1FB0 #B01F57 #A0B01F #1FB077
square
#2F1FB0 #B01F57 #A0B01F #1FB077
split-complementary
#2F1FB0 #B0771F #57B01F
monochromatic
#130D48 #21167C #2F1FB0 #4431DB #7365E4

Accessibility & contrast

On white

10.80
#2F1FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F1FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FB0
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FB0#FFFFFF#000000##FFFFFF
##2F1FB01.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B4
Deuteranopia (green-blind)
#0037AE
Tritanopia (blue-blind)
#004D69
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f1fb0;
/* rgb */ color: rgb(47, 31, 176);
/* oklch */ color: oklch(38.4% 0.211 274.9);
Tailwind
colors: {
  custom: {
    50: '#7d60c9',
    500: '#2f1fb0',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fb0;
$custom-light: #7d60c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fb0",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 176
  },
  "hsl": {
    "h": 246.621,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38421,
    "c": 0.21099,
    "h": 274.9
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

primary
#2F1FB0
secondary
#BEC962
accent
#ED3BD9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #2F1FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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