#2A145E#2A145E

#2A145E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.122 H 289.5°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#2A145E
RGBrgb(42, 20, 94)
HSLhsl(258, 65%, 22%)
HSVhsv(258, 79%, 37%)
CMYKcmyk(55.3%, 78.7%, 0%, 63.1%)
CIE-LABlab(14.40, 30.82, -40.06)
CIE-LCHlch(14.40, 50.54, 307.57°)
OKLaboklab(27.58% 0.0407 -0.1151)
OKLCHoklch(27.58% 0.122 289.5)
XYZxyz(3.2248, 1.8006, 10.7651)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A145E #485E14
analogous
#14235E #2A145E #4F145E
triadic
#2A145E #5E2A14 #145E2A
tetradic
#2A145E #5E1423 #485E14 #145E4F
square
#2A145E #5E1423 #485E14 #145E4F
split-complementary
#2A145E #5E4F14 #235E14
monochromatic
#0B0519 #13092C #2A145E #411F90 #5729C3

Accessibility & contrast

On white

15.44
#2A145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A145E
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A145E#FFFFFF#000000##FFFFFF
##2A145E1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#172838
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a145e;
/* rgb */ color: rgb(42, 20, 94);
/* oklch */ color: oklch(27.6% 0.122 289.5);
Tailwind
colors: {
  custom: {
    50: '#6a548c',
    500: '#2a145e',
    950: '#000000',
  },
}
SCSS
$custom: #2a145e;
$custom-light: #6a548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a145e",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 257.838,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27582,
    "c": 0.12207,
    "h": 289.5
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#2A145E
secondary
#7A9638
accent
#E840B6
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A145E

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

Preview Lab → · Contrast checker → · Palette generator →

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