#2F1F94#2F1F94

#2F1F94 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.178 H 278.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2F1F94
RGBrgb(47, 31, 148)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 58%)
CMYKcmyk(68.2%, 79.1%, 0%, 42%)
CIE-LABlab(22.73, 42.70, -60.95)
CIE-LCHlch(22.73, 74.42, 305.02°)
OKLaboklab(35.27% 0.0257 -0.1761)
OKLCHoklch(35.27% 0.178 278.3)
XYZxyz(7.0058, 3.7218, 28.3604)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F94 #84941F
analogous
#1F4A94 #2F1F94 #691F94
triadic
#2F1F94 #942F1F #1F942F
tetradic
#2F1F94 #941F4A #84941F #1F9469
square
#2F1F94 #941F4A #84941F #1F9469
split-complementary
#2F1F94 #94691F #4A941F
monochromatic
#0F0A2F #1F1461 #2F1F94 #3F2AC7 #6553DB

Accessibility & contrast

On white

12.04
#2F1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1F94
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F94#FFFFFF#000000##FFFFFF
##2F1F941.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1f94;
/* rgb */ color: rgb(47, 31, 148);
/* oklch */ color: oklch(35.3% 0.178 278.3);
Tailwind
colors: {
  custom: {
    50: '#775eb5',
    500: '#2f1f94',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f94;
$custom-light: #775eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f94",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 248.205,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35274,
    "c": 0.17792,
    "h": 278.3
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#2F1F94
secondary
#AFBE51
accent
#E83FD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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