#2F146B#2F146B

#2F146B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.138 H 289.1°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#2F146B
RGBrgb(47, 20, 107)
HSLhsl(259, 69%, 25%)
HSVhsv(259, 81%, 42%)
CMYKcmyk(56.1%, 81.3%, 0%, 58%)
CIE-LABlab(16.34, 35.63, -45.46)
CIE-LCHlch(16.34, 57.76, 308.09°)
OKLaboklab(29.48% 0.0452 -0.1307)
OKLCHoklch(29.48% 0.138 289.1)
XYZxyz(4.0755, 2.1660, 14.1104)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F146B #506B14
analogous
#14246B #2F146B #5B146B
triadic
#2F146B #6B2F14 #146B2F
tetradic
#2F146B #6B1424 #506B14 #146B5B
square
#2F146B #6B1424 #506B14 #146B5B
split-complementary
#2F146B #6B5B14 #246B14
monochromatic
#0B051A #180A37 #2F146B #461E9F #5C27D2

Accessibility & contrast

On white

14.65
#2F146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F146B
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F146B#FFFFFF#000000##FFFFFF
##2F146B1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#182D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f146b;
/* rgb */ color: rgb(47, 20, 107);
/* oklch */ color: oklch(29.5% 0.138 289.1);
Tailwind
colors: {
  custom: {
    50: '#6f5596',
    500: '#2f146b',
    950: '#000000',
  },
}
SCSS
$custom: #2f146b;
$custom-light: #6f5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2f146b",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 258.621,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29484,
    "c": 0.13831,
    "h": 289.1
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#2F146B
secondary
#81A239
accent
#EB3CB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F146B

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

Preview Lab → · Contrast checker → · Palette generator →

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