#2F154D#2F154D

#2F154D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.099 H 301.3°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2F154D
RGBrgb(47, 21, 77)
HSLhsl(268, 57%, 19%)
HSVhsv(268, 73%, 30%)
CMYKcmyk(39%, 72.7%, 0%, 69.8%)
CIE-LABlab(13.69, 26.08, -29.68)
CIE-LCHlch(13.69, 39.51, 311.31°)
OKLaboklab(26.73% 0.0513 -0.0844)
OKLCHoklch(26.73% 0.099 301.3)
XYZxyz(2.7797, 1.6765, 7.1969)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F154D #334D15
analogous
#15174D #2F154D #4B154D
triadic
#2F154D #4D2F15 #154D2F
tetradic
#2F154D #4D1517 #334D15 #154D4B
square
#2F154D #4D1517 #334D15 #154D4B
split-complementary
#2F154D #4D4B15 #174D15
monochromatic
#0F0718 #12081D #2F154D #4C227D #6A2FAD

Accessibility & contrast

On white

15.73
#2F154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F154D
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F154D#FFFFFF#000000##FFFFFF
##2F154D1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#00234C
Tritanopia (blue-blind)
#29222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f154d;
/* rgb */ color: rgb(47, 21, 77);
/* oklch */ color: oklch(26.7% 0.099 301.3);
Tailwind
colors: {
  custom: {
    50: '#6b547f',
    500: '#2f154d',
    950: '#000000',
  },
}
SCSS
$custom: #2f154d;
$custom-light: #6b547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f154d",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 267.857,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26732,
    "c": 0.09876,
    "h": 301.3
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#2F154D
secondary
#628539
accent
#E04799
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F154D

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

Preview Lab → · Contrast checker → · Palette generator →

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