#2F114A#2F114A

#2F114A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.101 H 304.2°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#2F114A
RGBrgb(47, 17, 74)
HSLhsl(272, 63%, 18%)
HSVhsv(272, 77%, 29%)
CMYKcmyk(36.5%, 77%, 0%, 71%)
CIE-LABlab(12.61, 27.52, -29.36)
CIE-LCHlch(12.61, 40.24, 313.14°)
OKLaboklab(25.88% 0.0568 -0.0835)
OKLCHoklch(25.88% 0.101 304.2)
XYZxyz(2.6085, 1.4997, 6.6293)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F114A #2C4A11
analogous
#13114A #2F114A #4A1148
triadic
#2F114A #4A2F11 #114A2F
tetradic
#2F114A #4A1311 #2C4A11 #11484A
square
#2F114A #4A1311 #2C4A11 #11484A
split-complementary
#2F114A #484A11 #114A13
monochromatic
#100619 #100619 #2F114A #4F1C7C #6E28AE

Accessibility & contrast

On white

16.15
#2F114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F114A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F114A
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F114A#FFFFFF#000000##FFFFFF
##2F114A1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#2A1E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f114a;
/* rgb */ color: rgb(47, 17, 74);
/* oklch */ color: oklch(25.9% 0.101 304.2);
Tailwind
colors: {
  custom: {
    50: '#6b527d',
    500: '#2f114a',
    950: '#000000',
  },
}
SCSS
$custom: #2f114a;
$custom-light: #6b527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f114a",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 271.579,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25877,
    "c": 0.10095,
    "h": 304.2
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#2F114A
secondary
#598333
accent
#E64290
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F114A

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

Preview Lab → · Contrast checker → · Palette generator →

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