#2F148D#2F148D

#2F148D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.179 H 280.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2F148D
RGBrgb(47, 20, 141)
HSLhsl(253, 75%, 32%)
HSVhsv(253, 86%, 55%)
CMYKcmyk(66.7%, 85.8%, 0%, 44.7%)
CIE-LABlab(20.15, 45.75, -60.87)
CIE-LCHlch(20.15, 76.15, 306.93°)
OKLaboklab(33.26% 0.0333 -0.1757)
OKLCHoklch(33.26% 0.179 280.7)
XYZxyz(6.2286, 3.0272, 25.4502)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F148D #728D14
analogous
#14368D #2F148D #6C148D
triadic
#2F148D #8D2F14 #148D2F
tetradic
#2F148D #8D1436 #728D14 #148D6C
square
#2F148D #8D1436 #728D14 #148D6C
split-complementary
#2F148D #8D6C14 #368D14
monochromatic
#0B0522 #1D0C57 #2F148D #411CC3 #5F39E3

Accessibility & contrast

On white

13.08
#2F148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F148D
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F148D#FFFFFF#000000##FFFFFF
##2F148D1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f148d;
/* rgb */ color: rgb(47, 20, 141);
/* oklch */ color: oklch(33.3% 0.179 280.7);
Tailwind
colors: {
  custom: {
    50: '#7658b0',
    500: '#2f148d',
    950: '#000000',
  },
}
SCSS
$custom: #2f148d;
$custom-light: #7658b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f148d",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 253.388,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33255,
    "c": 0.17879,
    "h": 280.7
  },
  "luminance": 0.03028
}

Semantic roles & 50–950 ramp

primary
#2F148D
secondary
#A3C13C
accent
#F236C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2F148D

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

Preview Lab → · Contrast checker → · Palette generator →

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