#2F145B#2F145B

#2F145B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.118 H 294.9°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#2F145B
RGBrgb(47, 20, 91)
HSLhsl(263, 64%, 22%)
HSVhsv(263, 78%, 36%)
CMYKcmyk(48.4%, 78%, 0%, 64.3%)
CIE-LABlab(14.73, 30.81, -37.49)
CIE-LCHlch(14.73, 48.52, 309.42°)
OKLaboklab(27.87% 0.0498 -0.1074)
OKLCHoklch(27.87% 0.118 294.9)
XYZxyz(3.3103, 1.8599, 10.0801)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F145B #405B14
analogous
#141D5B #2F145B #53145B
triadic
#2F145B #5B2F14 #145B2F
tetradic
#2F145B #5B141D #405B14 #145B53
square
#2F145B #5B141D #405B14 #145B53
split-complementary
#2F145B #5B5314 #1D5B14
monochromatic
#0D0619 #150929 #2F145B #491F8D #632ABF

Accessibility & contrast

On white

15.31
#2F145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F145B
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F145B#FFFFFF#000000##FFFFFF
##2F145B1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#232636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f145b;
/* rgb */ color: rgb(47, 20, 91);
/* oklch */ color: oklch(27.9% 0.118 294.9);
Tailwind
colors: {
  custom: {
    50: '#6d548a',
    500: '#2f145b',
    950: '#000000',
  },
}
SCSS
$custom: #2f145b;
$custom-light: #6d548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f145b",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 262.817,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27869,
    "c": 0.11833,
    "h": 294.9
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#2F145B
secondary
#709338
accent
#E741A8
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F145B

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

Preview Lab → · Contrast checker → · Palette generator →

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