#2F114B#2F114B

#2F114B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.102 H 303.6°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2F114B
RGBrgb(47, 17, 75)
HSLhsl(271, 63%, 18%)
HSVhsv(271, 77%, 29%)
CMYKcmyk(37.3%, 77.3%, 0%, 70.6%)
CIE-LABlab(12.69, 27.80, -29.91)
CIE-LCHlch(12.69, 40.83, 312.90°)
OKLaboklab(25.97% 0.0566 -0.0851)
OKLCHoklch(25.97% 0.102 303.6)
XYZxyz(2.6424, 1.5132, 6.8081)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F114B #2D4B11
analogous
#12114B #2F114B #4B114A
triadic
#2F114B #4B2F11 #114B2F
tetradic
#2F114B #4B1211 #2D4B11 #114A4B
square
#2F114B #4B1211 #2D4B11 #114A4B
split-complementary
#2F114B #4A4B11 #114B12
monochromatic
#100619 #100619 #2F114B #4E1C7D #6E28AF

Accessibility & contrast

On white

16.12
#2F114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F114B
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F114B#FFFFFF#000000##FFFFFF
##2F114B1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2A1F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f114b;
/* rgb */ color: rgb(47, 17, 75);
/* oklch */ color: oklch(26.0% 0.102 303.6);
Tailwind
colors: {
  custom: {
    50: '#6b527e',
    500: '#2f114b',
    950: '#000000',
  },
}
SCSS
$custom: #2f114b;
$custom-light: #6b527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f114b",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 271.034,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25965,
    "c": 0.1022,
    "h": 303.6
  },
  "luminance": 0.01513
}

Semantic roles & 50–950 ramp

primary
#2F114B
secondary
#5B8433
accent
#E64291
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F114B

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

Preview Lab → · Contrast checker → · Palette generator →

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