#2F1F93#2F1F93

#2F1F93 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.177 H 278.4°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2F1F93
RGBrgb(47, 31, 147)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 58%)
CMYKcmyk(68%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.62, 42.39, -60.51)
CIE-LCHlch(22.62, 73.88, 305.01°)
OKLaboklab(35.17% 0.0259 -0.1748)
OKLCHoklch(35.17% 0.177 278.4)
XYZxyz(6.9270, 3.6903, 27.9454)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F93 #83931F
analogous
#1F4993 #2F1F93 #691F93
triadic
#2F1F93 #932F1F #1F932F
tetradic
#2F1F93 #931F49 #83931F #1F9369
square
#2F1F93 #931F49 #83931F #1F9369
split-complementary
#2F1F93 #93691F #49931F
monochromatic
#0F0A2E #1F1460 #2F1F93 #3F2AC6 #6552DA

Accessibility & contrast

On white

12.08
#2F1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F93
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F93#FFFFFF#000000##FFFFFF
##2F1F931.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1f93;
/* rgb */ color: rgb(47, 31, 147);
/* oklch */ color: oklch(35.2% 0.177 278.4);
Tailwind
colors: {
  custom: {
    50: '#775eb4',
    500: '#2f1f93',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f93;
$custom-light: #775eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f93",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 248.276,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35165,
    "c": 0.1767,
    "h": 278.4
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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