#2F135E#2F135E

#2F135E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.123 H 293.9°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#2F135E
RGBrgb(47, 19, 94)
HSLhsl(262, 66%, 22%)
HSVhsv(262, 80%, 37%)
CMYKcmyk(50%, 79.8%, 0%, 63.1%)
CIE-LABlab(14.83, 32.24, -39.33)
CIE-LCHlch(14.83, 50.86, 309.35°)
OKLaboklab(28.03% 0.05 -0.1128)
OKLCHoklch(28.03% 0.123 293.9)
XYZxyz(3.4250, 1.8781, 10.7696)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F135E #425E13
analogous
#131D5E #2F135E #55135E
triadic
#2F135E #5E2F13 #135E2F
tetradic
#2F135E #5E131D #425E13 #135E55
square
#2F135E #5E131D #425E13 #135E55
split-complementary
#2F135E #5E5513 #1D5E13
monochromatic
#0D0519 #16092B #2F135E #481D91 #6228C4

Accessibility & contrast

On white

15.27
#2F135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F135E
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F135E#FFFFFF#000000##FFFFFF
##2F135E1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#212737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f135e;
/* rgb */ color: rgb(47, 19, 94);
/* oklch */ color: oklch(28.0% 0.123 293.9);
Tailwind
colors: {
  custom: {
    50: '#6d548c',
    500: '#2f135e',
    950: '#000000',
  },
}
SCSS
$custom: #2f135e;
$custom-light: #6d548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f135e",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 262.4,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28029,
    "c": 0.12333,
    "h": 293.9
  },
  "luminance": 0.01878
}

Semantic roles & 50–950 ramp

primary
#2F135E
secondary
#729637
accent
#E93FAA
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F135E

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

Preview Lab → · Contrast checker → · Palette generator →

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