#2B145E#2B145E

#2B145E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.122 H 290.3°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2B145E
RGBrgb(43, 20, 94)
HSLhsl(259, 65%, 22%)
HSVhsv(259, 79%, 37%)
CMYKcmyk(54.3%, 78.7%, 0%, 63.1%)
CIE-LABlab(14.52, 30.99, -39.86)
CIE-LCHlch(14.52, 50.49, 307.86°)
OKLaboklab(27.69% 0.0423 -0.1145)
OKLCHoklch(27.69% 0.122 290.3)
XYZxyz(3.2662, 1.8219, 10.7671)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B145E #475E14
analogous
#14225E #2B145E #50145E
triadic
#2B145E #5E2B14 #145E2B
tetradic
#2B145E #5E1422 #475E14 #145E50
square
#2B145E #5E1422 #475E14 #145E50
split-complementary
#2B145E #5E5014 #225E14
monochromatic
#0C0519 #14092C #2B145E #421F90 #5929C3

Accessibility & contrast

On white

15.39
#2B145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B145E
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B145E#FFFFFF#000000##FFFFFF
##2B145E1.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b145e;
/* rgb */ color: rgb(43, 20, 94);
/* oklch */ color: oklch(27.7% 0.122 290.3);
Tailwind
colors: {
  custom: {
    50: '#6b548c',
    500: '#2b145e',
    950: '#000000',
  },
}
SCSS
$custom: #2b145e;
$custom-light: #6b548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b145e",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 258.649,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27695,
    "c": 0.12204,
    "h": 290.3
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#2B145E
secondary
#799638
accent
#E840B4
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B145E

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

Preview Lab → · Contrast checker → · Palette generator →

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