#2F145F#2F145F

#2F145F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.123 H 293.3°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#2F145F
RGBrgb(47, 20, 95)
HSLhsl(262, 65%, 23%)
HSVhsv(262, 79%, 37%)
CMYKcmyk(50.5%, 78.9%, 0%, 62.7%)
CIE-LABlab(15.12, 32.01, -39.53)
CIE-LCHlch(15.12, 50.87, 309.00°)
OKLaboklab(28.26% 0.0487 -0.1134)
OKLCHoklch(28.26% 0.123 293.3)
XYZxyz(3.4874, 1.9308, 11.0132)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F145F #445F14
analogous
#141F5F #2F145F #54145F
triadic
#2F145F #5F2F14 #145F2F
tetradic
#2F145F #5F141F #445F14 #145F54
square
#2F145F #5F141F #445F14 #145F54
split-complementary
#2F145F #5F5414 #1F5F14
monochromatic
#0D0519 #16092C #2F145F #481F92 #6129C4

Accessibility & contrast

On white

15.15
#2F145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F145F
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F145F#FFFFFF#000000##FFFFFF
##2F145F1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#202838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f145f;
/* rgb */ color: rgb(47, 20, 95);
/* oklch */ color: oklch(28.3% 0.123 293.3);
Tailwind
colors: {
  custom: {
    50: '#6d548d',
    500: '#2f145f',
    950: '#000000',
  },
}
SCSS
$custom: #2f145f;
$custom-light: #6d548d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f145f",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 261.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2826,
    "c": 0.12339,
    "h": 293.3
  },
  "luminance": 0.01931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F145F

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

Preview Lab → · Contrast checker → · Palette generator →

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