#2F114C#2F114C

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

Color values

HEX#2F114C
RGBrgb(47, 17, 76)
HSLhsl(271, 63%, 18%)
HSVhsv(271, 78%, 30%)
CMYKcmyk(38.2%, 77.6%, 0%, 70.2%)
CIE-LABlab(12.78, 28.08, -30.46)
CIE-LCHlch(12.78, 41.43, 312.67°)
OKLaboklab(26.05% 0.0564 -0.0867)
OKLCHoklch(26.05% 0.103 303.1)
XYZxyz(2.6769, 1.5270, 6.9898)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F114C #2E4C11
analogous
#11114C #2F114C #4C114B
triadic
#2F114C #4C2F11 #114C2F
tetradic
#2F114C #4C1111 #2E4C11 #114B4C
square
#2F114C #4C1111 #2E4C11 #114B4C
split-complementary
#2F114C #4B4C11 #114C11
monochromatic
#0F0619 #10061A #2F114C #4E1C7E #6D27B0

Accessibility & contrast

On white

16.09
#2F114C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F114C
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F114C#FFFFFF#000000##FFFFFF
##2F114C1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f114c;
/* rgb */ color: rgb(47, 17, 76);
/* oklch */ color: oklch(26.1% 0.103 303.1);
Tailwind
colors: {
  custom: {
    50: '#6b527e',
    500: '#2f114c',
    950: '#000000',
  },
}
SCSS
$custom: #2f114c;
$custom-light: #6b527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f114c",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 76
  },
  "hsl": {
    "h": 270.508,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26054,
    "c": 0.10345,
    "h": 303.1
  },
  "luminance": 0.01527
}

Semantic roles & 50–950 ramp

primary
#2F114C
secondary
#5C8533
accent
#E64193
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F114C

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

Preview Lab → · Contrast checker → · Palette generator →

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