#2F136D#2F136D

#2F136D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.142 H 288.6°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2F136D
RGBrgb(47, 19, 109)
HSLhsl(259, 70%, 25%)
HSVhsv(259, 83%, 43%)
CMYKcmyk(56.9%, 82.6%, 0%, 57.3%)
CIE-LABlab(16.38, 36.72, -46.70)
CIE-LCHlch(16.38, 59.41, 308.18°)
OKLaboklab(29.58% 0.0453 -0.1343)
OKLCHoklch(29.58% 0.142 288.6)
XYZxyz(4.1647, 2.1740, 14.6652)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F136D #516D13
analogous
#13246D #2F136D #5C136D
triadic
#2F136D #6D2F13 #136D2F
tetradic
#2F136D #6D1324 #516D13 #136D5C
square
#2F136D #6D1324 #516D13 #136D5C
split-complementary
#2F136D #6D5C13 #246D13
monochromatic
#0B051A #190A39 #2F136D #451CA1 #5C25D5

Accessibility & contrast

On white

14.64
#2F136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F136D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F136D
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F136D#FFFFFF#000000##FFFFFF
##2F136D1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#162D40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f136d;
/* rgb */ color: rgb(47, 19, 109);
/* oklch */ color: oklch(29.6% 0.142 288.6);
Tailwind
colors: {
  custom: {
    50: '#705598',
    500: '#2f136d',
    950: '#000000',
  },
}
SCSS
$custom: #2f136d;
$custom-light: #705598;
$custom-dark: #000000;
JSON
{
  "hex": "#2f136d",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 258.667,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29576,
    "c": 0.14178,
    "h": 288.6
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#2F136D
secondary
#82A438
accent
#ED3BB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F136D

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

Preview Lab → · Contrast checker → · Palette generator →

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