#2F154F#2F154F

#2F154F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.101 H 300.2°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2F154F
RGBrgb(47, 21, 79)
HSLhsl(267, 58%, 20%)
HSVhsv(267, 73%, 31%)
CMYKcmyk(40.5%, 73.4%, 0%, 69%)
CIE-LABlab(13.86, 26.67, -30.78)
CIE-LCHlch(13.86, 40.72, 310.91°)
OKLaboklab(26.91% 0.051 -0.0876)
OKLCHoklch(26.91% 0.101 300.2)
XYZxyz(2.8514, 1.7052, 7.5745)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F154F #354F15
analogous
#15184F #2F154F #4C154F
triadic
#2F154F #4F2F15 #154F2F
tetradic
#2F154F #4F1518 #354F15 #154F4C
square
#2F154F #4F1518 #354F15 #154F4C
split-complementary
#2F154F #4F4C15 #184F15
monochromatic
#0E0618 #12081F #2F154F #4C227F #692FB0

Accessibility & contrast

On white

15.66
#2F154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F154F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F154F
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F154F#FFFFFF#000000##FFFFFF
##2F154F1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#282230
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f154f;
/* rgb */ color: rgb(47, 21, 79);
/* oklch */ color: oklch(26.9% 0.101 300.2);
Tailwind
colors: {
  custom: {
    50: '#6b5481',
    500: '#2f154f',
    950: '#000000',
  },
}
SCSS
$custom: #2f154f;
$custom-light: #6b5481;
$custom-dark: #000000;
JSON
{
  "hex": "#2f154f",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 266.897,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26906,
    "c": 0.10141,
    "h": 300.2
  },
  "luminance": 0.01705
}

Semantic roles & 50–950 ramp

primary
#2F154F
secondary
#648739
accent
#E1479C
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F154F

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

Preview Lab → · Contrast checker → · Palette generator →

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