#2F1FB3#2F1FB3

#2F1FB3 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.8% C 0.214 H 274.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#2F1FB3
RGBrgb(47, 31, 179)
HSLhsl(246, 70%, 41%)
HSVhsv(246, 83%, 70%)
CMYKcmyk(73.7%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.27, 52.24, -73.92)
CIE-LCHlch(26.27, 90.52, 305.25°)
OKLaboklab(38.77% 0.0171 -0.2137)
OKLCHoklch(38.77% 0.214 274.6)
XYZxyz(9.7963, 4.8380, 43.0566)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FB3 #A3B31F
analogous
#1F59B3 #2F1FB3 #791FB3
triadic
#2F1FB3 #B32F1F #1FB32F
tetradic
#2F1FB3 #B31F59 #A3B31F #1FB379
square
#2F1FB3 #B31F59 #A3B31F #1FB379
split-complementary
#2F1FB3 #B3791F #59B31F
monochromatic
#140D4B #21167F #2F1FB3 #4633DC #7568E5

Accessibility & contrast

On white

10.67
#2F1FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F1FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FB3
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FB3#FFFFFF#000000##FFFFFF
##2F1FB31.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f1fb3;
/* rgb */ color: rgb(47, 31, 179);
/* oklch */ color: oklch(38.8% 0.214 274.6);
Tailwind
colors: {
  custom: {
    50: '#7e60cb',
    500: '#2f1fb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fb3;
$custom-light: #7e60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fb3",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 246.486,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38766,
    "c": 0.21442,
    "h": 274.6
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#2F1FB3
secondary
#BFCA64
accent
#ED3BDA
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2F1FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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