#2F114E#2F114E

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

Color values

HEX#2F114E
RGBrgb(47, 17, 78)
HSLhsl(270, 64%, 19%)
HSVhsv(270, 78%, 31%)
CMYKcmyk(39.7%, 78.2%, 0%, 69.4%)
CIE-LABlab(12.96, 28.65, -31.55)
CIE-LCHlch(12.96, 42.62, 312.23°)
OKLaboklab(26.24% 0.056 -0.0899)
OKLCHoklch(26.24% 0.106 301.9)
XYZxyz(2.7476, 1.5553, 7.3617)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F114E #304E11
analogous
#11114E #2F114E #4D114E
triadic
#2F114E #4E2F11 #114E2F
tetradic
#2F114E #4E1111 #304E11 #114E4D
square
#2F114E #4E1111 #304E11 #114E4D
split-complementary
#2F114E #4E4D11 #114E11
monochromatic
#0F0519 #11061C #2F114E #4D1C80 #6C27B2

Accessibility & contrast

On white

16.02
#2F114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F114E
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F114E#FFFFFF#000000##FFFFFF
##2F114E1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#28202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f114e;
/* rgb */ color: rgb(47, 17, 78);
/* oklch */ color: oklch(26.2% 0.106 301.9);
Tailwind
colors: {
  custom: {
    50: '#6b5280',
    500: '#2f114e',
    950: '#000000',
  },
}
SCSS
$custom: #2f114e;
$custom-light: #6b5280;
$custom-dark: #000000;
JSON
{
  "hex": "#2f114e",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 269.508,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26235,
    "c": 0.10594,
    "h": 301.9
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#2F114E
secondary
#5E8733
accent
#E74195
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F114E

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

Preview Lab → · Contrast checker → · Palette generator →

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