#2F148B#2F148B

#2F148B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.176 H 281.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2F148B
RGBrgb(47, 20, 139)
HSLhsl(254, 75%, 31%)
HSVhsv(254, 86%, 55%)
CMYKcmyk(66.2%, 85.6%, 0%, 45.5%)
CIE-LABlab(19.92, 45.17, -60.01)
CIE-LCHlch(19.92, 75.11, 306.97°)
OKLaboklab(33.02% 0.034 -0.1732)
OKLCHoklch(33.02% 0.176 281.1)
XYZxyz(6.0812, 2.9683, 24.6736)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F148B #708B14
analogous
#14358B #2F148B #6A148B
triadic
#2F148B #8B2F14 #148B2F
tetradic
#2F148B #8B1435 #708B14 #148B6A
square
#2F148B #8B1435 #708B14 #148B6A
split-complementary
#2F148B #8B6A14 #358B14
monochromatic
#0B0520 #1D0C55 #2F148B #411CC1 #5E37E2

Accessibility & contrast

On white

13.18
#2F148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F148B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F148B#FFFFFF#000000##FFFFFF
##2F148B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f148b;
/* rgb */ color: rgb(47, 20, 139);
/* oklch */ color: oklch(33.0% 0.176 281.1);
Tailwind
colors: {
  custom: {
    50: '#7658ae',
    500: '#2f148b',
    950: '#000000',
  },
}
SCSS
$custom: #2f148b;
$custom-light: #7658ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f148b",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 253.613,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33024,
    "c": 0.17647,
    "h": 281.1
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#2F148B
secondary
#A1BF3C
accent
#F136C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2F148B

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

Preview Lab → · Contrast checker → · Palette generator →

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