#2F155B#2F155B

#2F155B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.117 H 294.6°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2F155B
RGBrgb(47, 21, 91)
HSLhsl(262, 63%, 22%)
HSVhsv(262, 77%, 36%)
CMYKcmyk(48.4%, 76.9%, 0%, 64.3%)
CIE-LABlab(14.93, 30.26, -37.16)
CIE-LCHlch(14.93, 47.92, 309.15°)
OKLaboklab(28.01% 0.0487 -0.1064)
OKLCHoklch(28.01% 0.117 294.6)
XYZxyz(3.3283, 1.8959, 10.0861)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F155B #415B15
analogous
#151E5B #2F155B #52155B
triadic
#2F155B #5B2F15 #155B2F
tetradic
#2F155B #5B151E #415B15 #155B52
square
#2F155B #5B151E #415B15 #155B52
split-complementary
#2F155B #5B5215 #1E5B15
monochromatic
#0D0619 #150A29 #2F155B #49208D #622CBE

Accessibility & contrast

On white

15.23
#2F155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F155B
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F155B#FFFFFF#000000##FFFFFF
##2F155B1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#232736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f155b;
/* rgb */ color: rgb(47, 21, 91);
/* oklch */ color: oklch(28.0% 0.117 294.6);
Tailwind
colors: {
  custom: {
    50: '#6d558a',
    500: '#2f155b',
    950: '#000000',
  },
}
SCSS
$custom: #2f155b;
$custom-light: #6d558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f155b",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 262.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28009,
    "c": 0.11704,
    "h": 294.6
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#2F155B
secondary
#719239
accent
#E642A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F155B

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

Preview Lab → · Contrast checker → · Palette generator →

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