#2D145B#2D145B

#2D145B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.118 H 293.1°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#2D145B
RGBrgb(45, 20, 91)
HSLhsl(261, 64%, 22%)
HSVhsv(261, 78%, 36%)
CMYKcmyk(50.5%, 78%, 0%, 64.3%)
CIE-LABlab(14.48, 30.43, -37.92)
CIE-LCHlch(14.48, 48.62, 308.74°)
OKLaboklab(27.63% 0.0464 -0.1087)
OKLCHoklch(27.63% 0.118 293.1)
XYZxyz(3.2201, 1.8134, 10.0759)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D145B #425B14
analogous
#141F5B #2D145B #51145B
triadic
#2D145B #5B2D14 #145B2D
tetradic
#2D145B #5B141F #425B14 #145B51
square
#2D145B #5B141F #425B14 #145B51
split-complementary
#2D145B #5B5114 #1F5B14
monochromatic
#0C0619 #140929 #2D145B #461F8D #5F2ABF

Accessibility & contrast

On white

15.41
#2D145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D145B
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D145B#FFFFFF#000000##FFFFFF
##2D145B1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#1F2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d145b;
/* rgb */ color: rgb(45, 20, 91);
/* oklch */ color: oklch(27.6% 0.118 293.1);
Tailwind
colors: {
  custom: {
    50: '#6b548a',
    500: '#2d145b',
    950: '#000000',
  },
}
SCSS
$custom: #2d145b;
$custom-light: #6b548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d145b",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 261.127,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27627,
    "c": 0.1182,
    "h": 293.1
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

primary
#2D145B
secondary
#739338
accent
#E741AC
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D145B

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

Preview Lab → · Contrast checker → · Palette generator →

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