#2F1E9F#2F1E9F

#2F1E9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.4% C 0.192 H 276.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2F1E9F
RGBrgb(47, 30, 159)
HSLhsl(248, 68%, 37%)
HSVhsv(248, 81%, 62%)
CMYKcmyk(70.4%, 81.1%, 0%, 37.6%)
CIE-LABlab(23.79, 46.64, -65.96)
CIE-LCHlch(23.79, 80.78, 305.26°)
OKLaboklab(36.38% 0.0231 -0.1906)
OKLCHoklch(36.38% 0.192 276.9)
XYZxyz(7.8925, 4.0354, 33.1571)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E9F #8E9F1E
analogous
#1E4E9F #2F1E9F #701E9F
triadic
#2F1E9F #9F2F1E #1E9F2F
tetradic
#2F1E9F #9F1E4E #8E9F1E #1E9F70
square
#2F1E9F #9F1E4E #8E9F1E #1E9F70
split-complementary
#2F1E9F #9F701E #4E9F1E
monochromatic
#110B38 #20146C #2F1E9F #3E28D2 #6A58DF

Accessibility & contrast

On white

11.62
#2F1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E9F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E9F#FFFFFF#000000##FFFFFF
##2F1E9F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f1e9f;
/* rgb */ color: rgb(47, 30, 159);
/* oklch */ color: oklch(36.4% 0.192 276.9);
Tailwind
colors: {
  custom: {
    50: '#795ebd',
    500: '#2f1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e9f;
$custom-light: #795ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e9f",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 247.907,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36375,
    "c": 0.192,
    "h": 276.9
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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