#2B145D#2B145D

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

Color values

HEX#2B145D
RGBrgb(43, 20, 93)
HSLhsl(259, 65%, 22%)
HSVhsv(259, 78%, 36%)
CMYKcmyk(53.8%, 78.5%, 0%, 63.5%)
CIE-LABlab(14.42, 30.68, -39.35)
CIE-LCHlch(14.42, 49.90, 307.94°)
OKLaboklab(27.59% 0.0426 -0.113)
OKLCHoklch(27.59% 0.121 290.7)
XYZxyz(3.2216, 1.8041, 10.5323)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B145D #465D14
analogous
#14225D #2B145D #50145D
triadic
#2B145D #5D2B14 #145D2B
tetradic
#2B145D #5D1422 #465D14 #145D50
square
#2B145D #5D1422 #465D14 #145D50
split-complementary
#2B145D #5D5014 #225D14
monochromatic
#0C0519 #14092B #2B145D #421F8F #5A2AC2

Accessibility & contrast

On white

15.43
#2B145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B145D
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B145D#FFFFFF#000000##FFFFFF
##2B145D1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#1A2837
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b145d;
/* rgb */ color: rgb(43, 20, 93);
/* oklch */ color: oklch(27.6% 0.121 290.7);
Tailwind
colors: {
  custom: {
    50: '#6a548c',
    500: '#2b145d',
    950: '#000000',
  },
}
SCSS
$custom: #2b145d;
$custom-light: #6a548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b145d",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 258.904,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27593,
    "c": 0.12075,
    "h": 290.7
  },
  "luminance": 0.01804
}

Semantic roles & 50–950 ramp

primary
#2B145D
secondary
#789538
accent
#E840B3
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B145D

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

Preview Lab → · Contrast checker → · Palette generator →

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