#2F1675#2F1675

#2F1675 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.149 H 285.8°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#2F1675
RGBrgb(47, 22, 117)
HSLhsl(256, 68%, 27%)
HSVhsv(256, 81%, 46%)
CMYKcmyk(59.8%, 81.2%, 0%, 54.1%)
CIE-LABlab(17.75, 37.66, -49.63)
CIE-LCHlch(17.75, 62.30, 307.19°)
OKLaboklab(30.79% 0.0405 -0.1429)
OKLCHoklch(30.79% 0.149 285.8)
XYZxyz(4.6691, 2.4622, 17.0554)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1675 #5C7516
analogous
#162D75 #2F1675 #5E1675
triadic
#2F1675 #752F16 #16752F
tetradic
#2F1675 #75162D #5C7516 #16755E
square
#2F1675 #75162D #5C7516 #16755E
split-complementary
#2F1675 #755E16 #2D7516
monochromatic
#0A051A #1A0C41 #2F1675 #4420A9 #5A2ED8

Accessibility & contrast

On white

14.07
#2F1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1675
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1675#FFFFFF#000000##FFFFFF
##2F16751.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#0B3245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1675;
/* rgb */ color: rgb(47, 22, 117);
/* oklch */ color: oklch(30.8% 0.149 285.8);
Tailwind
colors: {
  custom: {
    50: '#71579e',
    500: '#2f1675',
    950: '#000000',
  },
}
SCSS
$custom: #2f1675;
$custom-light: #71579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1675",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 255.789,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30789,
    "c": 0.14855,
    "h": 285.8
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#2F1675
secondary
#8EAB3C
accent
#EB3DBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1675

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

Preview Lab → · Contrast checker → · Palette generator →

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