#2F1F95#2F1F95

#2F1F95 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.179 H 278.1°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#2F1F95
RGBrgb(47, 31, 149)
HSLhsl(248, 66%, 35%)
HSVhsv(248, 79%, 58%)
CMYKcmyk(68.5%, 79.2%, 0%, 41.6%)
CIE-LABlab(22.84, 43.02, -61.39)
CIE-LCHlch(22.84, 74.96, 305.02°)
OKLaboklab(35.38% 0.0254 -0.1773)
OKLCHoklch(35.38% 0.179 278.1)
XYZxyz(7.0853, 3.7536, 28.7791)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F95 #85951F
analogous
#1F4A95 #2F1F95 #6A1F95
triadic
#2F1F95 #952F1F #1F952F
tetradic
#2F1F95 #951F4A #85951F #1F956A
square
#2F1F95 #951F4A #85951F #1F956A
split-complementary
#2F1F95 #956A1F #4A951F
monochromatic
#0F0A30 #1F1462 #2F1F95 #3F2AC8 #6653DB

Accessibility & contrast

On white

11.99
#2F1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F95
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F95#FFFFFF#000000##FFFFFF
##2F1F951.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f1f95;
/* rgb */ color: rgb(47, 31, 149);
/* oklch */ color: oklch(35.4% 0.179 278.1);
Tailwind
colors: {
  custom: {
    50: '#775eb5',
    500: '#2f1f95',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f95;
$custom-light: #775eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f95",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 248.136,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35384,
    "c": 0.17914,
    "h": 278.1
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#2F1F95
secondary
#B0BF51
accent
#E93FD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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