#2F1F80#2F1F80

#2F1F80 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.153 H 281.6°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2F1F80
RGBrgb(47, 31, 128)
HSLhsl(250, 61%, 31%)
HSVhsv(250, 76%, 50%)
CMYKcmyk(63.3%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.61, 36.28, -51.95)
CIE-LCHlch(20.61, 63.36, 304.93°)
OKLaboklab(33.15% 0.0308 -0.1498)
OKLCHoklch(33.15% 0.153 281.6)
XYZxyz(5.5573, 3.1424, 20.7316)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F80 #70801F
analogous
#1F3F80 #2F1F80 #5F1F80
triadic
#2F1F80 #802F1F #1F802F
tetradic
#2F1F80 #801F3F #70801F #1F805F
square
#2F1F80 #801F3F #70801F #1F805F
split-complementary
#2F1F80 #805F1F #3F801F
monochromatic
#0B071D #1D134F #2F1F80 #412BB1 #5E47D2

Accessibility & contrast

On white

12.89
#2F1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F80
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F80#FFFFFF#000000##FFFFFF
##2F1F801.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1f80;
/* rgb */ color: rgb(47, 31, 128);
/* oklch */ color: oklch(33.1% 0.153 281.6);
Tailwind
colors: {
  custom: {
    50: '#735da6',
    500: '#2f1f80',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f80;
$custom-light: #735da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f80",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 249.897,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33145,
    "c": 0.15292,
    "h": 281.6
  },
  "luminance": 0.03143
}

Semantic roles & 50–950 ramp

primary
#2F1F80
secondary
#A1B348
accent
#E444CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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