#2A107F#2A107F

#2A107F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.166 H 281.1°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#2A107F
RGBrgb(42, 16, 127)
HSLhsl(254, 78%, 28%)
HSVhsv(254, 87%, 50%)
CMYKcmyk(66.9%, 87.4%, 0%, 50.2%)
CIE-LABlab(17.44, 42.85, -56.56)
CIE-LCHlch(17.44, 70.96, 307.15°)
OKLaboklab(30.79% 0.0321 -0.1632)
OKLCHoklch(30.79% 0.166 281.1)
XYZxyz(4.9697, 2.3947, 20.2749)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A107F #657F10
analogous
#102D7F #2A107F #61107F
triadic
#2A107F #7F2A10 #107F2A
tetradic
#2A107F #7F102D #657F10 #107F61
square
#2A107F #7F102D #657F10 #107F61
split-complementary
#2A107F #7F6110 #2D7F10
monochromatic
#09031B #180949 #2A107F #3C17B5 #5226E4

Accessibility & contrast

On white

14.20
#2A107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A107F
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A107F#FFFFFF#000000##FFFFFF
##2A107F1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a107f;
/* rgb */ color: rgb(42, 16, 127);
/* oklch */ color: oklch(30.8% 0.166 281.1);
Tailwind
colors: {
  custom: {
    50: '#7154a5',
    500: '#2a107f',
    950: '#000000',
  },
}
SCSS
$custom: #2a107f;
$custom-light: #7154a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a107f",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 254.054,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30787,
    "c": 0.16633,
    "h": 281.1
  },
  "luminance": 0.02395
}

Semantic roles & 50–950 ramp

primary
#2A107F
secondary
#97B536
accent
#F434C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A107F

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

Preview Lab → · Contrast checker → · Palette generator →

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