#2F144C#2F144C

#2F144C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.099 H 302.2°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2F144C
RGBrgb(47, 20, 76)
HSLhsl(269, 58%, 19%)
HSVhsv(269, 74%, 30%)
CMYKcmyk(38.2%, 73.7%, 0%, 70.2%)
CIE-LABlab(13.39, 26.38, -29.47)
CIE-LCHlch(13.39, 39.55, 311.83°)
OKLaboklab(26.49% 0.0527 -0.0838)
OKLCHoklch(26.49% 0.099 302.2)
XYZxyz(2.7266, 1.6264, 7.0064)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F144C #314C14
analogous
#14154C #2F144C #4B144C
triadic
#2F144C #4C2F14 #144C2F
tetradic
#2F144C #4C1415 #314C14 #144C4B
square
#2F144C #4C1415 #314C14 #144C4B
split-complementary
#2F144C #4C4B14 #154C14
monochromatic
#0F0618 #11071C #2F144C #4D217C #6B2EAD

Accessibility & contrast

On white

15.85
#2F144C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F144C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F144C
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F144C#FFFFFF#000000##FFFFFF
##2F144C1.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00224B
Tritanopia (blue-blind)
#29212E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f144c;
/* rgb */ color: rgb(47, 20, 76);
/* oklch */ color: oklch(26.5% 0.099 302.2);
Tailwind
colors: {
  custom: {
    50: '#6a547e',
    500: '#2f144c',
    950: '#000000',
  },
}
SCSS
$custom: #2f144c;
$custom-light: #6a547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f144c",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 76
  },
  "hsl": {
    "h": 268.929,
    "s": 58.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26491,
    "c": 0.09899,
    "h": 302.2
  },
  "luminance": 0.01626
}

Semantic roles & 50–950 ramp

primary
#2F144C
secondary
#5F8438
accent
#E24697
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F144C

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

Preview Lab → · Contrast checker → · Palette generator →

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