#2F1F83#2F1F83

#2F1F83 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.157 H 281.1°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2F1F83
RGBrgb(47, 31, 131)
HSLhsl(250, 62%, 32%)
HSVhsv(250, 76%, 51%)
CMYKcmyk(64.1%, 76.3%, 0%, 48.6%)
CIE-LABlab(20.91, 37.26, -53.33)
CIE-LCHlch(20.91, 65.06, 304.94°)
OKLaboklab(33.46% 0.0301 -0.1538)
OKLCHoklch(33.46% 0.157 281.1)
XYZxyz(5.7577, 3.2226, 21.7869)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F83 #73831F
analogous
#1F4183 #2F1F83 #611F83
triadic
#2F1F83 #832F1F #1F832F
tetradic
#2F1F83 #831F41 #73831F #1F8361
square
#2F1F83 #831F41 #73831F #1F8361
split-complementary
#2F1F83 #83611F #41831F
monochromatic
#0B0820 #1D1352 #2F1F83 #412BB4 #5F49D4

Accessibility & contrast

On white

12.77
#2F1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1F83
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F83#FFFFFF#000000##FFFFFF
##2F1F831.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1f83;
/* rgb */ color: rgb(47, 31, 131);
/* oklch */ color: oklch(33.5% 0.157 281.1);
Tailwind
colors: {
  custom: {
    50: '#735da8',
    500: '#2f1f83',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f83;
$custom-light: #735da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f83",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 249.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33456,
    "c": 0.15676,
    "h": 281.1
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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