#2A107E#2A107E

#2A107E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.165 H 281.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2A107E
RGBrgb(42, 16, 126)
HSLhsl(254, 77%, 28%)
HSVhsv(254, 87%, 49%)
CMYKcmyk(66.7%, 87.3%, 0%, 50.6%)
CIE-LABlab(17.31, 42.55, -56.12)
CIE-LCHlch(17.31, 70.43, 307.17°)
OKLaboklab(30.67% 0.0325 -0.1619)
OKLCHoklch(30.67% 0.165 281.3)
XYZxyz(4.9048, 2.3688, 19.9334)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A107E #647E10
analogous
#102D7E #2A107E #61107E
triadic
#2A107E #7E2A10 #107E2A
tetradic
#2A107E #7E102D #647E10 #107E61
square
#2A107E #7E102D #647E10 #107E61
split-complementary
#2A107E #7E6110 #2D7E10
monochromatic
#09031B #180948 #2A107E #3C17B4 #5225E3

Accessibility & contrast

On white

14.25
#2A107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A107E
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A107E#FFFFFF#000000##FFFFFF
##2A107E1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a107e;
/* rgb */ color: rgb(42, 16, 126);
/* oklch */ color: oklch(30.7% 0.165 281.3);
Tailwind
colors: {
  custom: {
    50: '#7154a5',
    500: '#2a107e',
    950: '#000000',
  },
}
SCSS
$custom: #2a107e;
$custom-light: #7154a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a107e",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 254.182,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30669,
    "c": 0.16517,
    "h": 281.3
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#2A107E
secondary
#96B436
accent
#F434C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A107E

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

Preview Lab → · Contrast checker → · Palette generator →

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