#2F145C#2F145C

#2F145C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.120 H 294.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2F145C
RGBrgb(47, 20, 92)
HSLhsl(263, 64%, 22%)
HSVhsv(263, 78%, 36%)
CMYKcmyk(48.9%, 78.3%, 0%, 63.9%)
CIE-LABlab(14.83, 31.11, -38.00)
CIE-LCHlch(14.83, 49.11, 309.31°)
OKLaboklab(27.97% 0.0495 -0.1089)
OKLCHoklch(27.97% 0.12 294.4)
XYZxyz(3.3537, 1.8773, 10.3088)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F145C #415C14
analogous
#141D5C #2F145C #53145C
triadic
#2F145C #5C2F14 #145C2F
tetradic
#2F145C #5C141D #415C14 #145C53
square
#2F145C #5C141D #415C14 #145C53
split-complementary
#2F145C #5C5314 #1D5C14
monochromatic
#0D0519 #15092A #2F145C #491F8E #622AC1

Accessibility & contrast

On white

15.27
#2F145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F145C
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F145C#FFFFFF#000000##FFFFFF
##2F145C1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#222736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f145c;
/* rgb */ color: rgb(47, 20, 92);
/* oklch */ color: oklch(28.0% 0.120 294.4);
Tailwind
colors: {
  custom: {
    50: '#6d548b',
    500: '#2f145c',
    950: '#000000',
  },
}
SCSS
$custom: #2f145c;
$custom-light: #6d548b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f145c",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 262.5,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27966,
    "c": 0.11959,
    "h": 294.4
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#2F145C
secondary
#719438
accent
#E741A9
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F145C

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

Preview Lab → · Contrast checker → · Palette generator →

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