#2F1FD2#2F1FD2

#2F1FD2 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 42.4% C 0.249 H 272.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1FD2
RGBrgb(47, 31, 210)
HSLhsl(245, 74%, 47%)
HSVhsv(245, 85%, 82%)
CMYKcmyk(77.6%, 85.2%, 0%, 17.6%)
CIE-LABlab(30.00, 61.25, -85.98)
CIE-LCHlch(30.00, 105.56, 305.46°)
OKLaboklab(42.4% 0.0087 -0.2486)
OKLCHoklch(42.4% 0.249 272)
XYZxyz(13.2912, 6.2360, 61.4634)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1FD2 #C2D21F
analogous
#1F69D2 #2F1FD2 #881FD2
triadic
#2F1FD2 #D22F1F #1FD22F
tetradic
#2F1FD2 #D21F69 #C2D21F #1FD288
square
#2F1FD2 #D21F69 #C2D21F #1FD288
split-complementary
#2F1FD2 #D2881F #69D21F
monochromatic
#170F67 #23179D #2F1FD2 #584AE4 #897FEC

Accessibility & contrast

On white

9.34
#2F1FD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F1FD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1FD2
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1FD2#FFFFFF#000000##FFFFFF
##2F1FD21.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FD7
Deuteranopia (green-blind)
#003ECF
Tritanopia (blue-blind)
#005B7D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f1fd2;
/* rgb */ color: rgb(47, 31, 210);
/* oklch */ color: oklch(42.4% 0.249 272.0);
Tailwind
colors: {
  custom: {
    50: '#8562e1',
    500: '#2f1fd2',
    950: '#000000',
  },
}
SCSS
$custom: #2f1fd2;
$custom-light: #8562e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1fd2",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 210
  },
  "hsl": {
    "h": 245.363,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.42398,
    "c": 0.2488,
    "h": 272
  },
  "luminance": 0.06237
}

Semantic roles & 50–950 ramp

primary
#2F1FD2
secondary
#CCD478
accent
#F137E0
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #2F1FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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