#2B147C#2B147C

#2B147C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.159 H 281.9°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2B147C
RGBrgb(43, 20, 124)
HSLhsl(253, 72%, 28%)
HSVhsv(253, 84%, 49%)
CMYKcmyk(65.3%, 83.9%, 0%, 51.4%)
CIE-LABlab(17.78, 40.29, -54.08)
CIE-LCHlch(17.78, 67.44, 306.69°)
OKLaboklab(30.94% 0.0329 -0.156)
OKLCHoklch(30.94% 0.159 281.9)
XYZxyz(4.8834, 2.4688, 19.2841)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B147C #657C14
analogous
#14317C #2B147C #5F147C
triadic
#2B147C #7C2B14 #147C2B
tetradic
#2B147C #7C1431 #657C14 #147C5F
square
#2B147C #7C1431 #657C14 #147C5F
split-complementary
#2B147C #7C5F14 #317C14
monochromatic
#09041A #190B47 #2B147C #3D1DB1 #542DDD

Accessibility & contrast

On white

14.06
#2B147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B147C
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B147C#FFFFFF#000000##FFFFFF
##2B147C1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b147c;
/* rgb */ color: rgb(43, 20, 124);
/* oklch */ color: oklch(30.9% 0.159 281.9);
Tailwind
colors: {
  custom: {
    50: '#7156a3',
    500: '#2b147c',
    950: '#000000',
  },
}
SCSS
$custom: #2b147c;
$custom-light: #7156a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b147c",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 253.269,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30942,
    "c": 0.15944,
    "h": 281.9
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B147C

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

Preview Lab → · Contrast checker → · Palette generator →

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