#2F135F#2F135F

#2F135F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.125 H 293.5°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#2F135F
RGBrgb(47, 19, 95)
HSLhsl(262, 67%, 22%)
HSVhsv(262, 80%, 37%)
CMYKcmyk(50.5%, 80%, 0%, 62.7%)
CIE-LABlab(14.93, 32.54, -39.84)
CIE-LCHlch(14.93, 51.44, 309.24°)
OKLaboklab(28.13% 0.0497 -0.1142)
OKLCHoklch(28.13% 0.125 293.5)
XYZxyz(3.4702, 1.8962, 11.0074)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F135F #435F13
analogous
#131D5F #2F135F #55135F
triadic
#2F135F #5F2F13 #135F2F
tetradic
#2F135F #5F131D #435F13 #135F55
square
#2F135F #5F131D #435F13 #135F55
split-complementary
#2F135F #5F5513 #1D5F13
monochromatic
#0D051A #16092C #2F135F #481D92 #6127C5

Accessibility & contrast

On white

15.23
#2F135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F135F
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F135F#FFFFFF#000000##FFFFFF
##2F135F1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#202738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f135f;
/* rgb */ color: rgb(47, 19, 95);
/* oklch */ color: oklch(28.1% 0.125 293.5);
Tailwind
colors: {
  custom: {
    50: '#6d548d',
    500: '#2f135f',
    950: '#000000',
  },
}
SCSS
$custom: #2f135f;
$custom-light: #6d548d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f135f",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 262.105,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28129,
    "c": 0.12458,
    "h": 293.5
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#2F135F
secondary
#749737
accent
#EA3EAA
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F135F

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

Preview Lab → · Contrast checker → · Palette generator →

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