#2F146A#2F146A

#2F146A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.137 H 289.4°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2F146A
RGBrgb(47, 20, 106)
HSLhsl(259, 68%, 25%)
HSVhsv(259, 81%, 42%)
CMYKcmyk(55.7%, 81.1%, 0%, 58.4%)
CIE-LABlab(16.23, 35.33, -44.98)
CIE-LCHlch(16.23, 57.19, 308.15°)
OKLaboklab(29.38% 0.0455 -0.1293)
OKLCHoklch(29.38% 0.137 289.4)
XYZxyz(4.0232, 2.1451, 13.8349)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F146A #4F6A14
analogous
#14246A #2F146A #5A146A
triadic
#2F146A #6A2F14 #146A2F
tetradic
#2F146A #6A1424 #4F6A14 #146A5A
square
#2F146A #6A1424 #4F6A14 #146A5A
split-complementary
#2F146A #6A5A14 #246A14
monochromatic
#0B051A #180A37 #2F146A #461E9D #5D27D1

Accessibility & contrast

On white

14.70
#2F146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F146A
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F146A#FFFFFF#000000##FFFFFF
##2F146A1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#182C3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f146a;
/* rgb */ color: rgb(47, 20, 106);
/* oklch */ color: oklch(29.4% 0.137 289.4);
Tailwind
colors: {
  custom: {
    50: '#6f5596',
    500: '#2f146a',
    950: '#000000',
  },
}
SCSS
$custom: #2f146a;
$custom-light: #6f5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2f146a",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 258.837,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29379,
    "c": 0.13708,
    "h": 289.4
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#2F146A
secondary
#80A139
accent
#EB3DB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F146A

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

Preview Lab → · Contrast checker → · Palette generator →

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