#2F146F#2F146F

#2F146F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.143 H 287.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2F146F
RGBrgb(47, 20, 111)
HSLhsl(258, 69%, 26%)
HSVhsv(258, 82%, 44%)
CMYKcmyk(57.7%, 82%, 0%, 56.5%)
CIE-LABlab(16.76, 36.83, -47.37)
CIE-LCHlch(16.76, 60.01, 307.87°)
OKLaboklab(29.91% 0.0439 -0.1363)
OKLCHoklch(29.91% 0.143 287.8)
XYZxyz(4.2908, 2.2521, 15.2445)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F146F #546F14
analogous
#14266F #2F146F #5C146F
triadic
#2F146F #6F2F14 #146F2F
tetradic
#2F146F #6F1426 #546F14 #146F5C
square
#2F146F #6F1426 #546F14 #146F5C
split-complementary
#2F146F #6F5C14 #266F14
monochromatic
#0B051A #190B3B #2F146F #451DA3 #5B27D7

Accessibility & contrast

On white

14.48
#2F146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F146F
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F146F#FFFFFF#000000##FFFFFF
##2F146F1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#132E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f146f;
/* rgb */ color: rgb(47, 20, 111);
/* oklch */ color: oklch(29.9% 0.143 287.8);
Tailwind
colors: {
  custom: {
    50: '#705599',
    500: '#2f146f',
    950: '#000000',
  },
}
SCSS
$custom: #2f146f;
$custom-light: #705599;
$custom-dark: #000000;
JSON
{
  "hex": "#2f146f",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 257.802,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29907,
    "c": 0.1432,
    "h": 287.8
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#2F146F
secondary
#85A639
accent
#EC3CB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F146F

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

Preview Lab → · Contrast checker → · Palette generator →

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