#2F1F8D#2F1F8D

#2F1F8D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.169 H 279.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1F8D
RGBrgb(47, 31, 141)
HSLhsl(249, 64%, 34%)
HSVhsv(249, 78%, 55%)
CMYKcmyk(66.7%, 78%, 0%, 44.7%)
CIE-LABlab(21.97, 40.48, -57.86)
CIE-LCHlch(21.97, 70.62, 304.97°)
OKLaboklab(34.52% 0.0275 -0.1671)
OKLCHoklch(34.52% 0.169 279.4)
XYZxyz(6.4685, 3.5069, 25.5302)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F8D #7D8D1F
analogous
#1F468D #2F1F8D #661F8D
triadic
#2F1F8D #8D2F1F #1F8D2F
tetradic
#2F1F8D #8D1F46 #7D8D1F #1F8D66
square
#2F1F8D #8D1F46 #7D8D1F #1F8D66
split-complementary
#2F1F8D #8D661F #468D1F
monochromatic
#0E0929 #1E145B #2F1F8D #402ABF #624ED8

Accessibility & contrast

On white

12.34
#2F1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F8D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F8D#FFFFFF#000000##FFFFFF
##2F1F8D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1f8d;
/* rgb */ color: rgb(47, 31, 141);
/* oklch */ color: oklch(34.5% 0.169 279.4);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2f1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f8d;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f8d",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 248.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34515,
    "c": 0.16932,
    "h": 279.4
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#2F1F8D
secondary
#ABBB4D
accent
#E741CF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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