#2F1865#2F1865

#2F1865 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.126 H 290.1°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2F1865
RGBrgb(47, 24, 101)
HSLhsl(258, 62%, 25%)
HSVhsv(258, 76%, 40%)
CMYKcmyk(53.5%, 76.2%, 0%, 60.4%)
CIE-LABlab(16.49, 31.64, -41.27)
CIE-LCHlch(16.49, 52.00, 307.47°)
OKLaboklab(29.41% 0.0433 -0.1185)
OKLCHoklch(29.41% 0.126 290.1)
XYZxyz(3.8472, 2.1970, 12.5308)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1865 #4E6518
analogous
#182865 #2F1865 #561865
triadic
#2F1865 #652F18 #18652F
tetradic
#2F1865 #651828 #4E6518 #186556
square
#2F1865 #651828 #4E6518 #186556
split-complementary
#2F1865 #655618 #286518
monochromatic
#0C0619 #180C34 #2F1865 #462496 #5D30C8

Accessibility & contrast

On white

14.59
#2F1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F1865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1865
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1865#FFFFFF#000000##FFFFFF
##2F18651.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1865;
/* rgb */ color: rgb(47, 24, 101);
/* oklch */ color: oklch(29.4% 0.126 290.1);
Tailwind
colors: {
  custom: {
    50: '#6e5792',
    500: '#2f1865',
    950: '#000000',
  },
}
SCSS
$custom: #2f1865;
$custom-light: #6e5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1865",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 257.922,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29408,
    "c": 0.12614,
    "h": 290.1
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#2F1865
secondary
#7F9B3E
accent
#E543B4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1865

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

Preview Lab → · Contrast checker → · Palette generator →

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