#2B135E#2B135E

#2B135E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.123 H 290.5°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2B135E
RGBrgb(43, 19, 94)
HSLhsl(259, 66%, 22%)
HSVhsv(259, 80%, 37%)
CMYKcmyk(54.3%, 79.8%, 0%, 63.1%)
CIE-LABlab(14.33, 31.54, -40.18)
CIE-LCHlch(14.33, 51.08, 308.13°)
OKLaboklab(27.56% 0.0433 -0.1154)
OKLCHoklch(27.56% 0.123 290.5)
XYZxyz(3.2489, 1.7874, 10.7613)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B135E #465E13
analogous
#13215E #2B135E #51135E
triadic
#2B135E #5E2B13 #135E2B
tetradic
#2B135E #5E1321 #465E13 #135E51
square
#2B135E #5E1321 #465E13 #135E51
split-complementary
#2B135E #5E5113 #215E13
monochromatic
#0C0519 #14092B #2B135E #421D91 #5A28C4

Accessibility & contrast

On white

15.47
#2B135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B135E
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B135E#FFFFFF#000000##FFFFFF
##2B135E1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#192737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b135e;
/* rgb */ color: rgb(43, 19, 94);
/* oklch */ color: oklch(27.6% 0.123 290.5);
Tailwind
colors: {
  custom: {
    50: '#6b538c',
    500: '#2b135e',
    950: '#000000',
  },
}
SCSS
$custom: #2b135e;
$custom-light: #6b538c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b135e",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 259.2,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27558,
    "c": 0.12324,
    "h": 290.5
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#2B135E
secondary
#789637
accent
#E93FB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B135E

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

Preview Lab → · Contrast checker → · Palette generator →

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