#2F1F92#2F1F92

#2F1F92 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.175 H 278.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2F1F92
RGBrgb(47, 31, 146)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 57%)
CMYKcmyk(67.8%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.51, 42.07, -60.08)
CIE-LCHlch(22.51, 73.34, 305.00°)
OKLaboklab(35.06% 0.0262 -0.1735)
OKLCHoklch(35.06% 0.175 278.6)
XYZxyz(6.8489, 3.6591, 27.5339)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F92 #82921F
analogous
#1F4892 #2F1F92 #691F92
triadic
#2F1F92 #922F1F #1F922F
tetradic
#2F1F92 #921F48 #82921F #1F9269
square
#2F1F92 #921F48 #82921F #1F9269
split-complementary
#2F1F92 #92691F #48921F
monochromatic
#0E0A2D #1F1460 #2F1F92 #3F2AC4 #6451DA

Accessibility & contrast

On white

12.12
#2F1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F92
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F92#FFFFFF#000000##FFFFFF
##2F1F921.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003190
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1f92;
/* rgb */ color: rgb(47, 31, 146);
/* oklch */ color: oklch(35.1% 0.175 278.6);
Tailwind
colors: {
  custom: {
    50: '#765eb3',
    500: '#2f1f92',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f92;
$custom-light: #765eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f92",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 248.348,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35056,
    "c": 0.17548,
    "h": 278.6
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#2F1F92
secondary
#AEBD50
accent
#E840D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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