#2F1F82#2F1F82

#2F1F82 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.155 H 281.2°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2F1F82
RGBrgb(47, 31, 130)
HSLhsl(250, 61%, 32%)
HSVhsv(250, 76%, 51%)
CMYKcmyk(63.8%, 76.2%, 0%, 49%)
CIE-LABlab(20.81, 36.93, -52.87)
CIE-LCHlch(20.81, 64.49, 304.94°)
OKLaboklab(33.35% 0.0303 -0.1525)
OKLCHoklch(33.35% 0.155 281.2)
XYZxyz(5.6903, 3.1956, 21.4317)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F82 #72821F
analogous
#1F4182 #2F1F82 #611F82
triadic
#2F1F82 #822F1F #1F822F
tetradic
#2F1F82 #821F41 #72821F #1F8261
square
#2F1F82 #821F41 #72821F #1F8261
split-complementary
#2F1F82 #82611F #41821F
monochromatic
#0B071F #1D1351 #2F1F82 #412BB3 #5F48D3

Accessibility & contrast

On white

12.81
#2F1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F82
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F82#FFFFFF#000000##FFFFFF
##2F1F821.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1f82;
/* rgb */ color: rgb(47, 31, 130);
/* oklch */ color: oklch(33.4% 0.155 281.2);
Tailwind
colors: {
  custom: {
    50: '#735da7',
    500: '#2f1f82',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f82;
$custom-light: #735da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f82",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 249.697,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.15548,
    "h": 281.2
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

primary
#2F1F82
secondary
#A3B548
accent
#E543CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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