#2F144B#2F144B

#2F144B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.098 H 302.7°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#2F144B
RGBrgb(47, 20, 75)
HSLhsl(269, 58%, 19%)
HSVhsv(269, 73%, 29%)
CMYKcmyk(37.3%, 73.3%, 0%, 70.6%)
CIE-LABlab(13.31, 26.09, -28.92)
CIE-LCHlch(13.31, 38.95, 312.06°)
OKLaboklab(26.41% 0.0528 -0.0822)
OKLCHoklch(26.41% 0.098 302.7)
XYZxyz(2.6921, 1.6126, 6.8247)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F144B #304B14
analogous
#14144B #2F144B #4A144B
triadic
#2F144B #4B2F14 #144B2F
tetradic
#2F144B #4B1414 #304B14 #144B4A
square
#2F144B #4B1414 #304B14 #144B4A
split-complementary
#2F144B #4B4A14 #144B14
monochromatic
#0F0618 #11071B #2F144B #4D217B #6C2EAC

Accessibility & contrast

On white

15.88
#2F144B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2F144B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F144B
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F144B#FFFFFF#000000##FFFFFF
##2F144B1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#01224A
Tritanopia (blue-blind)
#29202D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f144b;
/* rgb */ color: rgb(47, 20, 75);
/* oklch */ color: oklch(26.4% 0.098 302.7);
Tailwind
colors: {
  custom: {
    50: '#6a537e',
    500: '#2f144b',
    950: '#000000',
  },
}
SCSS
$custom: #2f144b;
$custom-light: #6a537e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f144b",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 75
  },
  "hsl": {
    "h": 269.455,
    "s": 57.895,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26405,
    "c": 0.09769,
    "h": 302.7
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#2F144B
secondary
#5E8338
accent
#E14795
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F144B

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

Preview Lab → · Contrast checker → · Palette generator →

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