#2F195A#2F195A

#2F195A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.110 H 293.8°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#2F195A
RGBrgb(47, 25, 90)
HSLhsl(260, 57%, 23%)
HSVhsv(260, 72%, 35%)
CMYKcmyk(47.8%, 72.2%, 0%, 64.7%)
CIE-LABlab(15.68, 27.61, -35.27)
CIE-LCHlch(15.68, 44.79, 308.06°)
OKLaboklab(28.52% 0.0444 -0.1009)
OKLCHoklch(28.52% 0.11 293.8)
XYZxyz(3.3649, 2.0377, 9.8869)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F195A #445A19
analogous
#19235A #2F195A #50195A
triadic
#2F195A #5A2F19 #195A2F
tetradic
#2F195A #5A1923 #445A19 #195A50
square
#2F195A #5A1923 #445A19 #195A50
split-complementary
#2F195A #5A5019 #235A19
monochromatic
#0D0718 #160C2A #2F195A #48268A #6134BA

Accessibility & contrast

On white

14.92
#2F195A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F195A
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F195A#FFFFFF#000000##FFFFFF
##2F195A1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#232937
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f195a;
/* rgb */ color: rgb(47, 25, 90);
/* oklch */ color: oklch(28.5% 0.110 293.8);
Tailwind
colors: {
  custom: {
    50: '#6c5789',
    500: '#2f195a',
    950: '#000000',
  },
}
SCSS
$custom: #2f195a;
$custom-light: #6c5789;
$custom-dark: #000000;
JSON
{
  "hex": "#2f195a",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 90
  },
  "hsl": {
    "h": 260.308,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28517,
    "c": 0.11021,
    "h": 293.8
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#2F195A
secondary
#75903E
accent
#E048AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F195A

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

Preview Lab → · Contrast checker → · Palette generator →

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