#2B145B#2B145B

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

Color values

HEX#2B145B
RGBrgb(43, 20, 91)
HSLhsl(259, 64%, 22%)
HSVhsv(259, 78%, 36%)
CMYKcmyk(52.7%, 78%, 0%, 64.3%)
CIE-LABlab(14.23, 30.05, -38.34)
CIE-LCHlch(14.23, 48.71, 308.09°)
OKLaboklab(27.39% 0.0431 -0.11)
OKLCHoklch(27.39% 0.118 291.4)
XYZxyz(3.1342, 1.7691, 10.0718)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B145B #445B14
analogous
#14205B #2B145B #4F145B
triadic
#2B145B #5B2B14 #145B2B
tetradic
#2B145B #5B1420 #445B14 #145B4F
square
#2B145B #5B1420 #445B14 #145B4F
split-complementary
#2B145B #5B4F14 #205B14
monochromatic
#0C0619 #130929 #2B145B #431F8D #5A2ABF

Accessibility & contrast

On white

15.51
#2B145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B145B
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B145B#FFFFFF#000000##FFFFFF
##2B145B1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#1B2736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b145b;
/* rgb */ color: rgb(43, 20, 91);
/* oklch */ color: oklch(27.4% 0.118 291.4);
Tailwind
colors: {
  custom: {
    50: '#6a548a',
    500: '#2b145b',
    950: '#000000',
  },
}
SCSS
$custom: #2b145b;
$custom-light: #6a548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b145b",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 259.437,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27393,
    "c": 0.11816,
    "h": 291.4
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#2B145B
secondary
#759338
accent
#E741B1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B145B

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

Preview Lab → · Contrast checker → · Palette generator →

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