#2A187C#2A187C

#2A187C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.156 H 280.7°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2A187C
RGBrgb(42, 24, 124)
HSLhsl(251, 68%, 29%)
HSVhsv(251, 81%, 49%)
CMYKcmyk(66.1%, 80.6%, 0%, 51.4%)
CIE-LABlab(18.37, 38.19, -53.11)
CIE-LCHlch(18.37, 65.41, 305.72°)
OKLaboklab(31.33% 0.0289 -0.1533)
OKLCHoklch(31.33% 0.156 280.7)
XYZxyz(4.9184, 2.6004, 19.3076)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A187C #6A7C18
analogous
#18387C #2A187C #5C187C
triadic
#2A187C #7C2A18 #187C2A
tetradic
#2A187C #7C1838 #6A7C18 #187C5C
square
#2A187C #7C1838 #6A7C18 #187C5C
split-complementary
#2A187C #7C5C18 #387C18
monochromatic
#09051A #190E49 #2A187C #3B22AF #5336D8

Accessibility & contrast

On white

13.81
#2A187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A187C
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A187C#FFFFFF#000000##FFFFFF
##2A187C1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a187c;
/* rgb */ color: rgb(42, 24, 124);
/* oklch */ color: oklch(31.3% 0.156 280.7);
Tailwind
colors: {
  custom: {
    50: '#7058a3',
    500: '#2a187c',
    950: '#000000',
  },
}
SCSS
$custom: #2a187c;
$custom-light: #7058a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a187c",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 250.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31328,
    "c": 0.15599,
    "h": 280.7
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#2A187C
secondary
#9CB13F
accent
#EA3DCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A187C

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

Preview Lab → · Contrast checker → · Palette generator →

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