#2F136F#2F136F

#2F136F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.144 H 288.0°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2F136F
RGBrgb(47, 19, 111)
HSLhsl(258, 71%, 25%)
HSVhsv(258, 83%, 44%)
CMYKcmyk(57.7%, 82.9%, 0%, 56.5%)
CIE-LABlab(16.59, 37.32, -47.65)
CIE-LCHlch(16.59, 60.53, 308.07°)
OKLaboklab(29.79% 0.0446 -0.1371)
OKLCHoklch(29.79% 0.144 288)
XYZxyz(4.2736, 2.2176, 15.2387)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F136F #536F13
analogous
#13256F #2F136F #5D136F
triadic
#2F136F #6F2F13 #136F2F
tetradic
#2F136F #6F1325 #536F13 #136F5D
square
#2F136F #6F1325 #536F13 #136F5D
split-complementary
#2F136F #6F5D13 #256F13
monochromatic
#0B041A #190A3B #2F136F #451CA3 #5B25D8

Accessibility & contrast

On white

14.55
#2F136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F136F
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F136F#FFFFFF#000000##FFFFFF
##2F136F1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#142E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f136f;
/* rgb */ color: rgb(47, 19, 111);
/* oklch */ color: oklch(29.8% 0.144 288.0);
Tailwind
colors: {
  custom: {
    50: '#705599',
    500: '#2f136f',
    950: '#000000',
  },
}
SCSS
$custom: #2f136f;
$custom-light: #705599;
$custom-dark: #000000;
JSON
{
  "hex": "#2f136f",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 258.261,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2979,
    "c": 0.14419,
    "h": 288
  },
  "luminance": 0.02218
}

Semantic roles & 50–950 ramp

primary
#2F136F
secondary
#84A638
accent
#EE3AB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F136F

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

Preview Lab → · Contrast checker → · Palette generator →

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