#2B145A#2B145A

#2B145A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.117 H 291.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2B145A
RGBrgb(43, 20, 90)
HSLhsl(260, 64%, 22%)
HSVhsv(260, 78%, 35%)
CMYKcmyk(52.2%, 77.8%, 0%, 64.7%)
CIE-LABlab(14.13, 29.74, -37.83)
CIE-LCHlch(14.13, 48.12, 308.18°)
OKLaboklab(27.29% 0.0434 -0.1085)
OKLCHoklch(27.29% 0.117 291.8)
XYZxyz(3.0914, 1.7520, 9.8462)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B145A #435A14
analogous
#14205A #2B145A #4E145A
triadic
#2B145A #5A2B14 #145A2B
tetradic
#2B145A #5A1420 #435A14 #145A4E
square
#2B145A #5A1420 #435A14 #145A4E
split-complementary
#2B145A #5A4E14 #205A14
monochromatic
#0C0619 #130928 #2B145A #431F8C #5B2ABE

Accessibility & contrast

On white

15.55
#2B145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B145A
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B145A#FFFFFF#000000##FFFFFF
##2B145A1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#1C2635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b145a;
/* rgb */ color: rgb(43, 20, 90);
/* oklch */ color: oklch(27.3% 0.117 291.8);
Tailwind
colors: {
  custom: {
    50: '#6a5489',
    500: '#2b145a',
    950: '#000000',
  },
}
SCSS
$custom: #2b145a;
$custom-light: #6a5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2b145a",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 259.714,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27293,
    "c": 0.11685,
    "h": 291.8
  },
  "luminance": 0.01752
}

Semantic roles & 50–950 ramp

primary
#2B145A
secondary
#749238
accent
#E741B0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B145A

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

Preview Lab → · Contrast checker → · Palette generator →

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