#2F145D#2F145D

#2F145D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.121 H 294.0°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2F145D
RGBrgb(47, 20, 93)
HSLhsl(262, 65%, 22%)
HSVhsv(262, 78%, 36%)
CMYKcmyk(49.5%, 78.5%, 0%, 63.5%)
CIE-LABlab(14.93, 31.41, -38.51)
CIE-LCHlch(14.93, 49.70, 309.20°)
OKLaboklab(28.06% 0.0493 -0.1104)
OKLCHoklch(28.06% 0.121 294)
XYZxyz(3.3977, 1.8949, 10.5405)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F145D #425D14
analogous
#141D5D #2F145D #54145D
triadic
#2F145D #5D2F14 #145D2F
tetradic
#2F145D #5D141D #425D14 #145D54
square
#2F145D #5D141D #425D14 #145D54
split-complementary
#2F145D #5D5414 #1D5D14
monochromatic
#0D0519 #16092B #2F145D #481F8F #622AC2

Accessibility & contrast

On white

15.23
#2F145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F145D
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F145D#FFFFFF#000000##FFFFFF
##2F145D1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#212737
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f145d;
/* rgb */ color: rgb(47, 20, 93);
/* oklch */ color: oklch(28.1% 0.121 294.0);
Tailwind
colors: {
  custom: {
    50: '#6d548c',
    500: '#2f145d',
    950: '#000000',
  },
}
SCSS
$custom: #2f145d;
$custom-light: #6d548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f145d",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 262.192,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28063,
    "c": 0.12086,
    "h": 294
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#2F145D
secondary
#729538
accent
#E840AA
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F145D

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

Preview Lab → · Contrast checker → · Palette generator →

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