#2F195E#2F195E

#2F195E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.116 H 292.2°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2F195E
RGBrgb(47, 25, 94)
HSLhsl(259, 58%, 23%)
HSVhsv(259, 73%, 37%)
CMYKcmyk(50%, 73.4%, 0%, 63.1%)
CIE-LABlab(16.04, 28.86, -37.36)
CIE-LCHlch(16.04, 47.21, 307.69°)
OKLaboklab(28.89% 0.0437 -0.107)
OKLCHoklch(28.89% 0.116 292.2)
XYZxyz(3.5397, 2.1076, 10.8078)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F195E #485E19
analogous
#19265E #2F195E #51195E
triadic
#2F195E #5E2F19 #195E2F
tetradic
#2F195E #5E1926 #485E19 #195E51
square
#2F195E #5E1926 #485E19 #195E51
split-complementary
#2F195E #5E5119 #265E19
monochromatic
#0C0618 #170C2E #2F195E #47268E #5F33BF

Accessibility & contrast

On white

14.77
#2F195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F195E
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F195E#FFFFFF#000000##FFFFFF
##2F195E1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#212A39
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f195e;
/* rgb */ color: rgb(47, 25, 94);
/* oklch */ color: oklch(28.9% 0.116 292.2);
Tailwind
colors: {
  custom: {
    50: '#6d578c',
    500: '#2f195e',
    950: '#000000',
  },
}
SCSS
$custom: #2f195e;
$custom-light: #6d578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f195e",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 259.13,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28886,
    "c": 0.11559,
    "h": 292.2
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#2F195E
secondary
#79943F
accent
#E147B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F195E

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

Preview Lab → · Contrast checker → · Palette generator →

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