#2F114D#2F114D

#2F114D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.105 H 302.5°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#2F114D
RGBrgb(47, 17, 77)
HSLhsl(270, 64%, 18%)
HSVhsv(270, 78%, 30%)
CMYKcmyk(39%, 77.9%, 0%, 69.8%)
CIE-LABlab(12.87, 28.36, -31.01)
CIE-LCHlch(12.87, 42.02, 312.45°)
OKLaboklab(26.14% 0.0562 -0.0883)
OKLCHoklch(26.14% 0.105 302.5)
XYZxyz(2.7120, 1.5411, 7.1743)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F114D #2F4D11
analogous
#11114D #2F114D #4D114D
triadic
#2F114D #4D2F11 #114D2F
tetradic
#2F114D #4D1111 #2F4D11 #114D4D
square
#2F114D #4D1111 #2F4D11 #114D4D
split-complementary
#2F114D #4D4D11 #114D11
monochromatic
#0F0619 #10061B #2F114D #4E1C7F #6C27B1

Accessibility & contrast

On white

16.05
#2F114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F114D
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F114D#FFFFFF#000000##FFFFFF
##2F114D1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#291F2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f114d;
/* rgb */ color: rgb(47, 17, 77);
/* oklch */ color: oklch(26.1% 0.105 302.5);
Tailwind
colors: {
  custom: {
    50: '#6b527f',
    500: '#2f114d',
    950: '#000000',
  },
}
SCSS
$custom: #2f114d;
$custom-light: #6b527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f114d",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 270,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26144,
    "c": 0.1047,
    "h": 302.5
  },
  "luminance": 0.01541
}

Semantic roles & 50–950 ramp

primary
#2F114D
secondary
#5D8633
accent
#E74194
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F114D

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

Preview Lab → · Contrast checker → · Palette generator →

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