#2A144D#2A144D

#2A144D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.099 H 296.5°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#2A144D
RGBrgb(42, 20, 77)
HSLhsl(263, 59%, 19%)
HSVhsv(263, 74%, 30%)
CMYKcmyk(45.5%, 74%, 0%, 69.8%)
CIE-LABlab(12.79, 25.49, -31.17)
CIE-LCHlch(12.79, 40.27, 309.27°)
OKLaboklab(25.93% 0.0444 -0.089)
OKLCHoklch(25.93% 0.099 296.5)
XYZxyz(2.5442, 1.5283, 7.1807)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A144D #374D14
analogous
#141B4D #2A144D #47144D
triadic
#2A144D #4D2A14 #144D2A
tetradic
#2A144D #4D141B #374D14 #144D47
square
#2A144D #4D141B #374D14 #144D47
split-complementary
#2A144D #4D4714 #1B4D14
monochromatic
#0D0618 #10071C #2A144D #44217E #5F2DAE

Accessibility & contrast

On white

16.08
#2A144D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A144D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A144D
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A144D#FFFFFF#000000##FFFFFF
##2A144D1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#21222E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a144d;
/* rgb */ color: rgb(42, 20, 77);
/* oklch */ color: oklch(25.9% 0.099 296.5);
Tailwind
colors: {
  custom: {
    50: '#67537f',
    500: '#2a144d',
    950: '#000000',
  },
}
SCSS
$custom: #2a144d;
$custom-light: #67537f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a144d",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 77
  },
  "hsl": {
    "h": 263.158,
    "s": 58.763,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25931,
    "c": 0.09946,
    "h": 296.5
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#2A144D
secondary
#678538
accent
#E246A6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A144D

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

Preview Lab → · Contrast checker → · Palette generator →

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