#2F1965#2F1965

#2F1965 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.125 H 289.8°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2F1965
RGBrgb(47, 25, 101)
HSLhsl(257, 60%, 25%)
HSVhsv(257, 75%, 40%)
CMYKcmyk(53.5%, 75.2%, 0%, 60.4%)
CIE-LABlab(16.69, 31.06, -40.93)
CIE-LCHlch(16.69, 51.38, 307.19°)
OKLaboklab(29.55% 0.0423 -0.1175)
OKLCHoklch(29.55% 0.125 289.8)
XYZxyz(3.8682, 2.2390, 12.5378)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1965 #4F6519
analogous
#192965 #2F1965 #551965
triadic
#2F1965 #652F19 #19652F
tetradic
#2F1965 #651929 #4F6519 #196555
square
#2F1965 #651929 #4F6519 #196555
split-complementary
#2F1965 #655519 #296519
monochromatic
#0B0619 #180D34 #2F1965 #462596 #5D31C7

Accessibility & contrast

On white

14.50
#2F1965 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1965 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1965
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1965#FFFFFF#000000##FFFFFF
##2F19651.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1C2D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f1965;
/* rgb */ color: rgb(47, 25, 101);
/* oklch */ color: oklch(29.6% 0.125 289.8);
Tailwind
colors: {
  custom: {
    50: '#6e5892',
    500: '#2f1965',
    950: '#000000',
  },
}
SCSS
$custom: #2f1965;
$custom-light: #6e5892;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1965",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 101
  },
  "hsl": {
    "h": 257.368,
    "s": 60.317,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29554,
    "c": 0.12488,
    "h": 289.8
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#2F1965
secondary
#809B3F
accent
#E344B5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1965

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

Preview Lab → · Contrast checker → · Palette generator →

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