#2A083F#2A083F

#2A083F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.099 H 308.5°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#2A083F
RGBrgb(42, 8, 63)
HSLhsl(277, 77%, 14%)
HSVhsv(277, 87%, 25%)
CMYKcmyk(33.3%, 87.3%, 0%, 75.3%)
CIE-LABlab(9.20, 28.01, -27.20)
CIE-LCHlch(9.20, 39.04, 315.84°)
OKLaboklab(22.99% 0.0615 -0.0772)
OKLCHoklch(22.99% 0.099 308.5)
XYZxyz(1.9387, 1.0248, 4.7973)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A083F #1D3F08
analogous
#0F083F #2A083F #3F0839
triadic
#2A083F #3F2A08 #083F2A
tetradic
#2A083F #3F0F08 #1D3F08 #08393F
square
#2A083F #3F0F08 #1D3F08 #08393F
split-complementary
#2A083F #393F08 #083F0F
monochromatic
#12031B #12031B #2A083F #4E0F75 #7216AC

Accessibility & contrast

On white

17.43
#2A083F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2A083F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A083F
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A083F#FFFFFF#000000##FFFFFF
##2A083F1.0017.431.2117.43
#FFFFFF17.431.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001941
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#271623
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a083f;
/* rgb */ color: rgb(42, 8, 63);
/* oklch */ color: oklch(23.0% 0.099 308.5);
Tailwind
colors: {
  custom: {
    50: '#664c74',
    500: '#2a083f',
    950: '#000000',
  },
}
SCSS
$custom: #2a083f;
$custom-light: #664c74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a083f",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 63
  },
  "hsl": {
    "h": 277.091,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22985,
    "c": 0.09872,
    "h": 308.5
  },
  "luminance": 0.01025
}

Semantic roles & 50–950 ramp

primary
#2A083F
secondary
#477E25
accent
#F4347D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A083F

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

Preview Lab → · Contrast checker → · Palette generator →

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