#2B146E#2B146E

#2B146E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.142 H 285.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#2B146E
RGBrgb(43, 20, 110)
HSLhsl(255, 69%, 25%)
HSVhsv(255, 82%, 43%)
CMYKcmyk(60.9%, 81.8%, 0%, 56.9%)
CIE-LABlab(16.20, 35.98, -47.65)
CIE-LCHlch(16.20, 59.71, 307.05°)
OKLaboklab(29.38% 0.0375 -0.1373)
OKLCHoklch(29.38% 0.142 285.3)
XYZxyz(4.0600, 2.1394, 14.9478)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B146E #576E14
analogous
#142A6E #2B146E #58146E
triadic
#2B146E #6E2B14 #146E2B
tetradic
#2B146E #6E142A #576E14 #146E58
square
#2B146E #6E142A #576E14 #146E58
split-complementary
#2B146E #6E5814 #2A6E14
monochromatic
#0A051A #170B3A #2B146E #3F1DA2 #5327D6

Accessibility & contrast

On white

14.71
#2B146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B146E
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B146E#FFFFFF#000000##FFFFFF
##2B146E1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#062E41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b146e;
/* rgb */ color: rgb(43, 20, 110);
/* oklch */ color: oklch(29.4% 0.142 285.3);
Tailwind
colors: {
  custom: {
    50: '#6e5599',
    500: '#2b146e',
    950: '#000000',
  },
}
SCSS
$custom: #2b146e;
$custom-light: #6e5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2b146e",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 255.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29381,
    "c": 0.14232,
    "h": 285.3
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#2B146E
secondary
#89A539
accent
#EC3CBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B146E

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

Preview Lab → · Contrast checker → · Palette generator →

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