#2F114F#2F114F

#2F114F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.107 H 301.4°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2F114F
RGBrgb(47, 17, 79)
HSLhsl(269, 65%, 19%)
HSVhsv(269, 78%, 31%)
CMYKcmyk(40.5%, 78.5%, 0%, 69%)
CIE-LABlab(13.04, 28.93, -32.10)
CIE-LCHlch(13.04, 43.21, 312.03°)
OKLaboklab(26.33% 0.0558 -0.0915)
OKLCHoklch(26.33% 0.107 301.4)
XYZxyz(2.7837, 1.5697, 7.5520)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F114F #314F11
analogous
#11124F #2F114F #4E114F
triadic
#2F114F #4F2F11 #114F2F
tetradic
#2F114F #4F1112 #314F11 #114F4E
square
#2F114F #4F1112 #314F11 #114F4E
split-complementary
#2F114F #4F4E11 #124F11
monochromatic
#0F0519 #11061D #2F114F #4D1C81 #6B27B4

Accessibility & contrast

On white

15.98
#2F114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F114F
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F114F#FFFFFF#000000##FFFFFF
##2F114F1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#28202E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f114f;
/* rgb */ color: rgb(47, 17, 79);
/* oklch */ color: oklch(26.3% 0.107 301.4);
Tailwind
colors: {
  custom: {
    50: '#6b5281',
    500: '#2f114f',
    950: '#000000',
  },
}
SCSS
$custom: #2f114f;
$custom-light: #6b5281;
$custom-dark: #000000;
JSON
{
  "hex": "#2f114f",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 269.032,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26327,
    "c": 0.10719,
    "h": 301.4
  },
  "luminance": 0.0157
}

Semantic roles & 50–950 ramp

primary
#2F114F
secondary
#5F8833
accent
#E84097
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F114F

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

Preview Lab → · Contrast checker → · Palette generator →

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