#2F145E#2F145E

#2F145E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.122 H 293.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2F145E
RGBrgb(47, 20, 94)
HSLhsl(262, 65%, 22%)
HSVhsv(262, 79%, 37%)
CMYKcmyk(50%, 78.7%, 0%, 63.1%)
CIE-LABlab(15.02, 31.71, -39.02)
CIE-LCHlch(15.02, 50.28, 309.10°)
OKLaboklab(28.16% 0.049 -0.1119)
OKLCHoklch(28.16% 0.122 293.6)
XYZxyz(3.4423, 1.9127, 10.7753)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F145E #435E14
analogous
#141E5E #2F145E #54145E
triadic
#2F145E #5E2F14 #145E2F
tetradic
#2F145E #5E141E #435E14 #145E54
square
#2F145E #5E141E #435E14 #145E54
split-complementary
#2F145E #5E5414 #1E5E14
monochromatic
#0D0519 #16092C #2F145E #481F90 #6129C3

Accessibility & contrast

On white

15.19
#2F145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F145E
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F145E#FFFFFF#000000##FFFFFF
##2F145E1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#212838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f145e;
/* rgb */ color: rgb(47, 20, 94);
/* oklch */ color: oklch(28.2% 0.122 293.6);
Tailwind
colors: {
  custom: {
    50: '#6d548c',
    500: '#2f145e',
    950: '#000000',
  },
}
SCSS
$custom: #2f145e;
$custom-light: #6d548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f145e",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 261.892,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28161,
    "c": 0.12213,
    "h": 293.6
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#2F145E
secondary
#749638
accent
#E840AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F145E

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

Preview Lab → · Contrast checker → · Palette generator →

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