#2F135B#2F135B

#2F135B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.120 H 295.1°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2F135B
RGBrgb(47, 19, 91)
HSLhsl(263, 65%, 22%)
HSVhsv(263, 79%, 36%)
CMYKcmyk(48.4%, 79.1%, 0%, 64.3%)
CIE-LABlab(14.54, 31.35, -37.80)
CIE-LCHlch(14.54, 49.11, 309.67°)
OKLaboklab(27.73% 0.0508 -0.1083)
OKLCHoklch(27.73% 0.12 295.1)
XYZxyz(3.2930, 1.8253, 10.0743)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F135B #3F5B13
analogous
#131B5B #2F135B #53135B
triadic
#2F135B #5B2F13 #135B2F
tetradic
#2F135B #5B131B #3F5B13 #135B53
square
#2F135B #5B131B #3F5B13 #135B53
split-complementary
#2F135B #5B5313 #1B5B13
monochromatic
#0D0519 #150828 #2F135B #491E8E #6328C0

Accessibility & contrast

On white

15.38
#2F135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F135B
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F135B#FFFFFF#000000##FFFFFF
##2F135B1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#232636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f135b;
/* rgb */ color: rgb(47, 19, 91);
/* oklch */ color: oklch(27.7% 0.120 295.1);
Tailwind
colors: {
  custom: {
    50: '#6d548a',
    500: '#2f135b',
    950: '#000000',
  },
}
SCSS
$custom: #2f135b;
$custom-light: #6d548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f135b",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 263.333,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27734,
    "c": 0.11959,
    "h": 295.1
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#2F135B
secondary
#6F9337
accent
#E83FA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F135B

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

Preview Lab → · Contrast checker → · Palette generator →

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