#2B147D#2B147D

#2B147D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.161 H 281.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2B147D
RGBrgb(43, 20, 125)
HSLhsl(253, 72%, 28%)
HSVhsv(253, 84%, 49%)
CMYKcmyk(65.6%, 84%, 0%, 51%)
CIE-LABlab(17.89, 40.59, -54.53)
CIE-LCHlch(17.89, 67.98, 306.67°)
OKLaboklab(31.06% 0.0325 -0.1573)
OKLCHoklch(31.06% 0.161 281.7)
XYZxyz(4.9469, 2.4942, 19.6188)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B147D #667D14
analogous
#14317D #2B147D #5F147D
triadic
#2B147D #7D2B14 #147D2B
tetradic
#2B147D #7D1431 #667D14 #147D5F
square
#2B147D #7D1431 #667D14 #147D5F
split-complementary
#2B147D #7D5F14 #317D14
monochromatic
#09041A #190C48 #2B147D #3D1CB2 #542EDE

Accessibility & contrast

On white

14.01
#2B147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B147D
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B147D#FFFFFF#000000##FFFFFF
##2B147D1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b147d;
/* rgb */ color: rgb(43, 20, 125);
/* oklch */ color: oklch(31.1% 0.161 281.7);
Tailwind
colors: {
  custom: {
    50: '#7156a4',
    500: '#2b147d',
    950: '#000000',
  },
}
SCSS
$custom: #2b147d;
$custom-light: #7156a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b147d",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 253.143,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31055,
    "c": 0.16066,
    "h": 281.7
  },
  "luminance": 0.02495
}

Semantic roles & 50–950 ramp

primary
#2B147D
secondary
#98B23A
accent
#EF39C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B147D

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

Preview Lab → · Contrast checker → · Palette generator →

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