#2D147E#2D147E

#2D147E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.162 H 282.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2D147E
RGBrgb(45, 20, 126)
HSLhsl(254, 73%, 29%)
HSVhsv(254, 84%, 49%)
CMYKcmyk(64.3%, 84.1%, 0%, 50.6%)
CIE-LABlab(18.21, 41.11, -54.64)
CIE-LCHlch(18.21, 68.38, 306.96°)
OKLaboklab(31.36% 0.0354 -0.1576)
OKLCHoklch(31.36% 0.162 282.7)
XYZxyz(5.0971, 2.5642, 19.9610)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D147E #657E14
analogous
#14307E #2D147E #62147E
triadic
#2D147E #7E2D14 #147E2D
tetradic
#2D147E #7E1430 #657E14 #147E62
square
#2D147E #7E1430 #657E14 #147E62
split-complementary
#2D147E #7E6214 #307E14
monochromatic
#09041A #1A0C49 #2D147E #401CB3 #582EDE

Accessibility & contrast

On white

13.88
#2D147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D147E
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D147E#FFFFFF#000000##FFFFFF
##2D147E1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d147e;
/* rgb */ color: rgb(45, 20, 126);
/* oklch */ color: oklch(31.4% 0.162 282.7);
Tailwind
colors: {
  custom: {
    50: '#7256a5',
    500: '#2d147e',
    950: '#000000',
  },
}
SCSS
$custom: #2d147e;
$custom-light: #7256a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d147e",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 254.151,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31355,
    "c": 0.16152,
    "h": 282.7
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#2D147E
secondary
#97B33A
accent
#EF38C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D147E

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

Preview Lab → · Contrast checker → · Palette generator →

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