#2F195B#2F195B

#2F195B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.112 H 293.4°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#2F195B
RGBrgb(47, 25, 91)
HSLhsl(260, 57%, 23%)
HSVhsv(260, 73%, 36%)
CMYKcmyk(48.4%, 72.5%, 0%, 64.3%)
CIE-LABlab(15.77, 27.92, -35.79)
CIE-LCHlch(15.77, 45.40, 307.96°)
OKLaboklab(28.61% 0.0443 -0.1024)
OKLCHoklch(28.61% 0.112 293.4)
XYZxyz(3.4077, 2.0548, 10.1126)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F195B #455B19
analogous
#19245B #2F195B #50195B
triadic
#2F195B #5B2F19 #195B2F
tetradic
#2F195B #5B1924 #455B19 #195B50
square
#2F195B #5B1924 #455B19 #195B50
split-complementary
#2F195B #5B5019 #245B19
monochromatic
#0C0718 #160C2B #2F195B #48268B #6133BB

Accessibility & contrast

On white

14.88
#2F195B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F195B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F195B
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F195B#FFFFFF#000000##FFFFFF
##2F195B1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#222937
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f195b;
/* rgb */ color: rgb(47, 25, 91);
/* oklch */ color: oklch(28.6% 0.112 293.4);
Tailwind
colors: {
  custom: {
    50: '#6c578a',
    500: '#2f195b',
    950: '#000000',
  },
}
SCSS
$custom: #2f195b;
$custom-light: #6c578a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f195b",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 91
  },
  "hsl": {
    "h": 260,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28609,
    "c": 0.11157,
    "h": 293.4
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#2F195B
secondary
#76913F
accent
#E048AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F195B

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

Preview Lab → · Contrast checker → · Palette generator →

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