#2F1E8F#2F1E8F

#2F1E8F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.173 H 279.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1E8F
RGBrgb(47, 30, 143)
HSLhsl(249, 65%, 34%)
HSVhsv(249, 79%, 56%)
CMYKcmyk(67.1%, 79%, 0%, 43.9%)
CIE-LABlab(22.00, 41.64, -59.06)
CIE-LCHlch(22.00, 72.26, 305.19°)
OKLaboklab(34.6% 0.0276 -0.1705)
OKLCHoklch(34.6% 0.173 279.2)
XYZxyz(6.5929, 3.5155, 26.3124)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E8F #7E8F1E
analogous
#1E468F #2F1E8F #681E8F
triadic
#2F1E8F #8F2F1E #1E8F2F
tetradic
#2F1E8F #8F1E46 #7E8F1E #1E8F68
square
#2F1E8F #8F1E46 #7E8F1E #1E8F68
split-complementary
#2F1E8F #8F681E #468F1E
monochromatic
#0E092A #1E135C #2F1E8F #4029C2 #634EDA

Accessibility & contrast

On white

12.33
#2F1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E8F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E8F#FFFFFF#000000##FFFFFF
##2F1E8F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1e8f;
/* rgb */ color: rgb(47, 30, 143);
/* oklch */ color: oklch(34.6% 0.173 279.2);
Tailwind
colors: {
  custom: {
    50: '#765db1',
    500: '#2f1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e8f;
$custom-light: #765db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e8f",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 249.027,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34602,
    "c": 0.17274,
    "h": 279.2
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#2F1E8F
secondary
#ACBC4C
accent
#E840CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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