#2B145C#2B145C

#2B145C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.119 H 291.0°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2B145C
RGBrgb(43, 20, 92)
HSLhsl(259, 64%, 22%)
HSVhsv(259, 78%, 36%)
CMYKcmyk(53.3%, 78.3%, 0%, 63.9%)
CIE-LABlab(14.32, 30.36, -38.85)
CIE-LCHlch(14.32, 49.31, 308.01°)
OKLaboklab(27.49% 0.0429 -0.1115)
OKLCHoklch(27.49% 0.119 291)
XYZxyz(3.1776, 1.7865, 10.3005)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B145C #455C14
analogous
#14215C #2B145C #4F145C
triadic
#2B145C #5C2B14 #145C2B
tetradic
#2B145C #5C1421 #455C14 #145C4F
square
#2B145C #5C1421 #455C14 #145C4F
split-complementary
#2B145C #5C4F14 #215C14
monochromatic
#0C0519 #14092A #2B145C #421F8E #5A2AC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B145C#FFFFFF#000000##FFFFFF
##2B145C1.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)
#00255E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#1B2736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b145c;
/* rgb */ color: rgb(43, 20, 92);
/* oklch */ color: oklch(27.5% 0.119 291.0);
Tailwind
colors: {
  custom: {
    50: '#6a548b',
    500: '#2b145c',
    950: '#000000',
  },
}
SCSS
$custom: #2b145c;
$custom-light: #6a548b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b145c",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 259.167,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27493,
    "c": 0.11946,
    "h": 291
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#2B145C
secondary
#769438
accent
#E741B2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B145C

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

Preview Lab → · Contrast checker → · Palette generator →

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