#2D147B#2D147B

#2D147B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.158 H 283.3°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2D147B
RGBrgb(45, 20, 123)
HSLhsl(255, 72%, 28%)
HSVhsv(255, 84%, 48%)
CMYKcmyk(63.4%, 83.7%, 0%, 51.8%)
CIE-LABlab(17.86, 40.21, -53.29)
CIE-LCHlch(17.86, 66.76, 307.03°)
OKLaboklab(31.02% 0.0365 -0.1537)
OKLCHoklch(31.02% 0.158 283.3)
XYZxyz(4.9064, 2.4879, 18.9567)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D147B #627B14
analogous
#142E7B #2D147B #60147B
triadic
#2D147B #7B2D14 #147B2D
tetradic
#2D147B #7B142E #627B14 #147B60
square
#2D147B #7B142E #627B14 #147B60
split-complementary
#2D147B #7B6014 #2E7B14
monochromatic
#0A041A #1A0B46 #2D147B #401DB0 #572DDD

Accessibility & contrast

On white

14.02
#2D147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D147B
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D147B#FFFFFF#000000##FFFFFF
##2D147B1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d147b;
/* rgb */ color: rgb(45, 20, 123);
/* oklch */ color: oklch(31.0% 0.158 283.3);
Tailwind
colors: {
  custom: {
    50: '#7156a2',
    500: '#2d147b',
    950: '#000000',
  },
}
SCSS
$custom: #2d147b;
$custom-light: #7156a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d147b",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 254.563,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31017,
    "c": 0.15794,
    "h": 283.3
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#2D147B
secondary
#94B13A
accent
#EF39C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D147B

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

Preview Lab → · Contrast checker → · Palette generator →

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