#2B147B#2B147B

#2B147B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.158 H 282.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#2B147B
RGBrgb(43, 20, 123)
HSLhsl(253, 72%, 28%)
HSVhsv(253, 84%, 48%)
CMYKcmyk(65%, 83.7%, 0%, 51.8%)
CIE-LABlab(17.66, 39.98, -53.63)
CIE-LCHlch(17.66, 66.90, 306.71°)
OKLaboklab(30.83% 0.0332 -0.1547)
OKLCHoklch(30.83% 0.158 282.1)
XYZxyz(4.8204, 2.4436, 18.9527)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B147B #647B14
analogous
#14307B #2B147B #5E147B
triadic
#2B147B #7B2B14 #147B2B
tetradic
#2B147B #7B1430 #647B14 #147B5E
square
#2B147B #7B1430 #647B14 #147B5E
split-complementary
#2B147B #7B5E14 #307B14
monochromatic
#09041A #190B46 #2B147B #3D1DB0 #542DDD

Accessibility & contrast

On white

14.11
#2B147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B147B
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B147B#FFFFFF#000000##FFFFFF
##2B147B1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b147b;
/* rgb */ color: rgb(43, 20, 123);
/* oklch */ color: oklch(30.8% 0.158 282.1);
Tailwind
colors: {
  custom: {
    50: '#7056a2',
    500: '#2b147b',
    950: '#000000',
  },
}
SCSS
$custom: #2b147b;
$custom-light: #7056a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b147b",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 253.398,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30828,
    "c": 0.15824,
    "h": 282.1
  },
  "luminance": 0.02444
}

Semantic roles & 50–950 ramp

primary
#2B147B
secondary
#96B13A
accent
#EF39C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B147B

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

Preview Lab → · Contrast checker → · Palette generator →

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