#2F1E9E#2F1E9E

#2F1E9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.191 H 277.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2F1E9E
RGBrgb(47, 30, 158)
HSLhsl(248, 68%, 37%)
HSVhsv(248, 81%, 62%)
CMYKcmyk(70.3%, 81%, 0%, 38%)
CIE-LABlab(23.67, 46.33, -65.53)
CIE-LCHlch(23.67, 80.26, 305.26°)
OKLaboklab(36.26% 0.0234 -0.1894)
OKLCHoklch(36.26% 0.191 277)
XYZxyz(7.8061, 4.0008, 32.7020)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E9E #8D9E1E
analogous
#1E4D9E #2F1E9E #6F1E9E
triadic
#2F1E9E #9E2F1E #1E9E2F
tetradic
#2F1E9E #9E1E4D #8D9E1E #1E9E6F
square
#2F1E9E #9E1E4D #8D9E1E #1E9E6F
split-complementary
#2F1E9E #9E6F1E #4D9E1E
monochromatic
#100A37 #20146B #2F1E9E #3E28D1 #6957DF

Accessibility & contrast

On white

11.66
#2F1E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F1E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E9E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E9E#FFFFFF#000000##FFFFFF
##2F1E9E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f1e9e;
/* rgb */ color: rgb(47, 30, 158);
/* oklch */ color: oklch(36.3% 0.191 277.0);
Tailwind
colors: {
  custom: {
    50: '#795ebc',
    500: '#2f1e9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e9e;
$custom-light: #795ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e9e",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 158
  },
  "hsl": {
    "h": 247.969,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36262,
    "c": 0.19082,
    "h": 277
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#2F1E9E
secondary
#B4C355
accent
#EB3DD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F1E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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