#2F134A#2F134A

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

Color values

HEX#2F134A
RGBrgb(47, 19, 74)
HSLhsl(271, 59%, 18%)
HSVhsv(271, 74%, 29%)
CMYKcmyk(36.5%, 74.3%, 0%, 71%)
CIE-LABlab(13.01, 26.39, -28.70)
CIE-LCHlch(13.01, 38.99, 312.59°)
OKLaboklab(26.17% 0.0543 -0.0815)
OKLCHoklch(26.17% 0.098 303.6)
XYZxyz(2.6409, 1.5645, 6.6401)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F134A #2E4A13
analogous
#13134A #2F134A #4A1349
triadic
#2F134A #4A2F13 #134A2F
tetradic
#2F134A #4A1313 #2E4A13 #13494A
square
#2F134A #4A1313 #2E4A13 #13494A
split-complementary
#2F134A #494A13 #134A13
monochromatic
#0F0618 #100619 #2F134A #4E207B #6D2CAB

Accessibility & contrast

On white

16.00
#2F134A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F134A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F134A
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F134A#FFFFFF#000000##FFFFFF
##2F134A1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#012149
Tritanopia (blue-blind)
#2A1F2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f134a;
/* rgb */ color: rgb(47, 19, 74);
/* oklch */ color: oklch(26.2% 0.098 303.6);
Tailwind
colors: {
  custom: {
    50: '#6a537d',
    500: '#2f134a',
    950: '#000000',
  },
}
SCSS
$custom: #2f134a;
$custom-light: #6a537d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f134a",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 74
  },
  "hsl": {
    "h": 270.545,
    "s": 59.14,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26167,
    "c": 0.09794,
    "h": 303.6
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#2F134A
secondary
#5C8336
accent
#E24592
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F134A

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

Preview Lab → · Contrast checker → · Palette generator →

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