#2F1F9B#2F1F9B

#2F1F9B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.186 H 277.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2F1F9B
RGBrgb(47, 31, 155)
HSLhsl(248, 67%, 36%)
HSVhsv(248, 80%, 61%)
CMYKcmyk(69.7%, 80%, 0%, 39.2%)
CIE-LABlab(23.51, 44.90, -63.98)
CIE-LCHlch(23.51, 78.16, 305.06°)
OKLaboklab(36.05% 0.0238 -0.1849)
OKLCHoklch(36.05% 0.186 277.3)
XYZxyz(7.5767, 3.9502, 31.3672)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F9B #8B9B1F
analogous
#1F4D9B #2F1F9B #6D1F9B
triadic
#2F1F9B #9B2F1F #1F9B2F
tetradic
#2F1F9B #9B1F4D #8B9B1F #1F9B6D
square
#2F1F9B #9B1F4D #8B9B1F #1F9B6D
split-complementary
#2F1F9B #9B6D1F #4D9B1F
monochromatic
#100B35 #201568 #2F1F9B #3E29CE #6857DD

Accessibility & contrast

On white

11.73
#2F1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F9B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F9B#FFFFFF#000000##FFFFFF
##2F1F9B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1f9b;
/* rgb */ color: rgb(47, 31, 155);
/* oklch */ color: oklch(36.0% 0.186 277.3);
Tailwind
colors: {
  custom: {
    50: '#785eba',
    500: '#2f1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f9b;
$custom-light: #785eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f9b",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 247.742,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36046,
    "c": 0.18638,
    "h": 277.3
  },
  "luminance": 0.03951
}

Semantic roles & 50–950 ramp

primary
#2F1F9B
secondary
#B3C155
accent
#EA3ED3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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