#2F155E#2F155E

#2F155E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.121 H 293.4°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2F155E
RGBrgb(47, 21, 94)
HSLhsl(261, 63%, 23%)
HSVhsv(261, 78%, 37%)
CMYKcmyk(50%, 77.7%, 0%, 63.1%)
CIE-LABlab(15.22, 31.16, -38.71)
CIE-LCHlch(15.22, 49.69, 308.84°)
OKLaboklab(28.3% 0.048 -0.1109)
OKLCHoklch(28.3% 0.121 293.4)
XYZxyz(3.4603, 1.9487, 10.7813)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F155E #445E15
analogous
#151F5E #2F155E #53155E
triadic
#2F155E #5E2F15 #155E2F
tetradic
#2F155E #5E151F #445E15 #155E53
square
#2F155E #5E151F #445E15 #155E53
split-complementary
#2F155E #5E5315 #1F5E15
monochromatic
#0D0619 #160A2C #2F155E #482090 #612BC2

Accessibility & contrast

On white

15.11
#2F155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F155E
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F155E#FFFFFF#000000##FFFFFF
##2F155E1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#212838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f155e;
/* rgb */ color: rgb(47, 21, 94);
/* oklch */ color: oklch(28.3% 0.121 293.4);
Tailwind
colors: {
  custom: {
    50: '#6d558c',
    500: '#2f155e',
    950: '#000000',
  },
}
SCSS
$custom: #2f155e;
$custom-light: #6d558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f155e",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 261.37,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.12088,
    "h": 293.4
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#2F155E
secondary
#759539
accent
#E741AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F155E

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

Preview Lab → · Contrast checker → · Palette generator →

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