#2F135A#2F135A

#2F135A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.118 H 295.6°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2F135A
RGBrgb(47, 19, 90)
HSLhsl(264, 65%, 21%)
HSVhsv(264, 79%, 35%)
CMYKcmyk(47.8%, 78.9%, 0%, 64.7%)
CIE-LABlab(14.45, 31.05, -37.28)
CIE-LCHlch(14.45, 48.52, 309.79°)
OKLaboklab(27.64% 0.051 -0.1068)
OKLCHoklch(27.64% 0.118 295.6)
XYZxyz(3.2501, 1.8082, 9.8487)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F135A #3E5A13
analogous
#131B5A #2F135A #53135A
triadic
#2F135A #5A2F13 #135A2F
tetradic
#2F135A #5A131B #3E5A13 #135A53
square
#2F135A #5A131B #3E5A13 #135A53
split-complementary
#2F135A #5A5313 #1B5A13
monochromatic
#0D0519 #150827 #2F135A #491E8D #6428BF

Accessibility & contrast

On white

15.42
#2F135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F135A
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F135A#FFFFFF#000000##FFFFFF
##2F135A1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#232535
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f135a;
/* rgb */ color: rgb(47, 19, 90);
/* oklch */ color: oklch(27.6% 0.118 295.6);
Tailwind
colors: {
  custom: {
    50: '#6d5489',
    500: '#2f135a',
    950: '#000000',
  },
}
SCSS
$custom: #2f135a;
$custom-light: #6d5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2f135a",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 263.662,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27636,
    "c": 0.11833,
    "h": 295.6
  },
  "luminance": 0.01808
}

Semantic roles & 50–950 ramp

primary
#2F135A
secondary
#6E9237
accent
#E840A6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F135A

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

Preview Lab → · Contrast checker → · Palette generator →

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