#2F174B#2F174B

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

Color values

HEX#2F174B
RGBrgb(47, 23, 75)
HSLhsl(268, 53%, 19%)
HSVhsv(268, 69%, 29%)
CMYKcmyk(37.3%, 69.3%, 0%, 70.6%)
CIE-LABlab(13.97, 24.27, -27.84)
CIE-LCHlch(13.97, 36.94, 311.08°)
OKLaboklab(26.89% 0.0488 -0.079)
OKLCHoklch(26.89% 0.093 301.7)
XYZxyz(2.7484, 1.7251, 6.8434)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F174B #334B17
analogous
#17194B #2F174B #49174B
triadic
#2F174B #4B2F17 #174B2F
tetradic
#2F174B #4B1719 #334B17 #174B49
square
#2F174B #4B1719 #334B17 #174B49
split-complementary
#2F174B #4B4917 #194B17
monochromatic
#0F0717 #12091C #2F174B #4C257A #6A34A9

Accessibility & contrast

On white

15.61
#2F174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F174B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F174B
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F174B#FFFFFF#000000##FFFFFF
##2F174B1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#06234A
Tritanopia (blue-blind)
#29222E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f174b;
/* rgb */ color: rgb(47, 23, 75);
/* oklch */ color: oklch(26.9% 0.093 301.7);
Tailwind
colors: {
  custom: {
    50: '#6a557e',
    500: '#2f174b',
    950: '#000000',
  },
}
SCSS
$custom: #2f174b;
$custom-light: #6a557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f174b",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 267.692,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26886,
    "c": 0.09286,
    "h": 301.7
  },
  "luminance": 0.01725
}

Semantic roles & 50–950 ramp

primary
#2F174B
secondary
#62823C
accent
#DC4B99
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F174B

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

Preview Lab → · Contrast checker → · Palette generator →

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