#2F1895#2F1895

#2F1895 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.185 H 278.9°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1895
RGBrgb(47, 24, 149)
HSLhsl(251, 72%, 34%)
HSVhsv(251, 84%, 58%)
CMYKcmyk(68.5%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.68, 46.40, -63.31)
CIE-LCHlch(21.68, 78.49, 306.24°)
OKLaboklab(34.58% 0.0288 -0.1828)
OKLCHoklch(34.58% 0.185 278.9)
XYZxyz(6.9220, 3.4269, 28.7246)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1895 #7E9518
analogous
#184095 #2F1895 #6E1895
triadic
#2F1895 #952F18 #18952F
tetradic
#2F1895 #951840 #7E9518 #18956E
square
#2F1895 #951840 #7E9518 #18956E
split-complementary
#2F1895 #956E18 #409518
monochromatic
#0E072C #1E1060 #2F1895 #4020CA #6346E1

Accessibility & contrast

On white

12.46
#2F1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1895
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1895#FFFFFF#000000##FFFFFF
##2F18951.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1895;
/* rgb */ color: rgb(47, 24, 149);
/* oklch */ color: oklch(34.6% 0.185 278.9);
Tailwind
colors: {
  custom: {
    50: '#785ab5',
    500: '#2f1895',
    950: '#000000',
  },
}
SCSS
$custom: #2f1895;
$custom-light: #785ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1895",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 251.04,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34578,
    "c": 0.18507,
    "h": 278.9
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#2F1895
secondary
#ACC246
accent
#EF39CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1895

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

Preview Lab → · Contrast checker → · Palette generator →

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