#2F145A#2F145A

#2F145A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.117 H 295.3°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2F145A
RGBrgb(47, 20, 90)
HSLhsl(263, 64%, 22%)
HSVhsv(263, 78%, 35%)
CMYKcmyk(47.8%, 77.8%, 0%, 64.7%)
CIE-LABlab(14.64, 30.51, -36.97)
CIE-LCHlch(14.64, 47.93, 309.53°)
OKLaboklab(27.77% 0.05 -0.1058)
OKLCHoklch(27.77% 0.117 295.3)
XYZxyz(3.2674, 1.8428, 9.8544)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F145A #3F5A14
analogous
#141C5A #2F145A #52145A
triadic
#2F145A #5A2F14 #145A2F
tetradic
#2F145A #5A141C #3F5A14 #145A52
square
#2F145A #5A141C #3F5A14 #145A52
split-complementary
#2F145A #5A5214 #1C5A14
monochromatic
#0D0619 #150928 #2F145A #491F8C #632ABE

Accessibility & contrast

On white

15.34
#2F145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F145A
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F145A#FFFFFF#000000##FFFFFF
##2F145A1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#232635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f145a;
/* rgb */ color: rgb(47, 20, 90);
/* oklch */ color: oklch(27.8% 0.117 295.3);
Tailwind
colors: {
  custom: {
    50: '#6c5489',
    500: '#2f145a',
    950: '#000000',
  },
}
SCSS
$custom: #2f145a;
$custom-light: #6c5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2f145a",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 263.143,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27773,
    "c": 0.11706,
    "h": 295.3
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#2F145A
secondary
#6F9238
accent
#E741A7
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F145A

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

Preview Lab → · Contrast checker → · Palette generator →

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