#2B147A#2B147A

#2B147A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.157 H 282.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2B147A
RGBrgb(43, 20, 122)
HSLhsl(254, 72%, 28%)
HSVhsv(254, 84%, 48%)
CMYKcmyk(64.8%, 83.6%, 0%, 52.2%)
CIE-LABlab(17.55, 39.68, -53.18)
CIE-LCHlch(17.55, 66.35, 306.73°)
OKLaboklab(30.71% 0.0335 -0.1534)
OKLCHoklch(30.71% 0.157 282.3)
XYZxyz(4.7582, 2.4187, 18.6247)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B147A #637A14
analogous
#14307A #2B147A #5E147A
triadic
#2B147A #7A2B14 #147A2B
tetradic
#2B147A #7A1430 #637A14 #147A5E
square
#2B147A #7A1430 #637A14 #147A5E
split-complementary
#2B147A #7A5E14 #307A14
monochromatic
#09041A #180B45 #2B147A #3E1DAF #542CDC

Accessibility & contrast

On white

14.15
#2B147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B147A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B147A#FFFFFF#000000##FFFFFF
##2B147A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b147a;
/* rgb */ color: rgb(43, 20, 122);
/* oklch */ color: oklch(30.7% 0.157 282.3);
Tailwind
colors: {
  custom: {
    50: '#7056a2',
    500: '#2b147a',
    950: '#000000',
  },
}
SCSS
$custom: #2b147a;
$custom-light: #7056a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b147a",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 253.529,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30715,
    "c": 0.15703,
    "h": 282.3
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#2B147A
secondary
#95B03A
accent
#EF39C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B147A

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

Preview Lab → · Contrast checker → · Palette generator →

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