#2F175A#2F175A

#2F175A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.113 H 294.4°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#2F175A
RGBrgb(47, 23, 90)
HSLhsl(261, 59%, 22%)
HSVhsv(261, 74%, 35%)
CMYKcmyk(47.8%, 74.4%, 0%, 64.7%)
CIE-LABlab(15.25, 28.81, -35.97)
CIE-LCHlch(15.25, 46.08, 308.69°)
OKLaboklab(28.21% 0.0467 -0.1029)
OKLCHoklch(28.21% 0.113 294.4)
XYZxyz(3.3237, 1.9552, 9.8732)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F175A #425A17
analogous
#17205A #2F175A #51175A
triadic
#2F175A #5A2F17 #175A2F
tetradic
#2F175A #5A1720 #425A17 #175A51
square
#2F175A #5A1720 #425A17 #175A51
split-complementary
#2F175A #5A5117 #205A17
monochromatic
#0D0618 #160B29 #2F175A #48238B #6230BB

Accessibility & contrast

On white

15.10
#2F175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F175A
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F175A#FFFFFF#000000##FFFFFF
##2F175A1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#232836
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f175a;
/* rgb */ color: rgb(47, 23, 90);
/* oklch */ color: oklch(28.2% 0.113 294.4);
Tailwind
colors: {
  custom: {
    50: '#6c5689',
    500: '#2f175a',
    950: '#000000',
  },
}
SCSS
$custom: #2f175a;
$custom-light: #6c5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2f175a",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 261.493,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28207,
    "c": 0.11304,
    "h": 294.4
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#2F175A
secondary
#72913C
accent
#E245AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F175A

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

Preview Lab → · Contrast checker → · Palette generator →

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