#2A083E#2A083E

#2A083E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.098 H 309.2°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#2A083E
RGBrgb(42, 8, 62)
HSLhsl(278, 77%, 14%)
HSVhsv(278, 87%, 24%)
CMYKcmyk(32.3%, 87.1%, 0%, 75.7%)
CIE-LABlab(9.11, 27.75, -26.63)
CIE-LCHlch(9.11, 38.46, 316.18°)
OKLaboklab(22.89% 0.0617 -0.0756)
OKLCHoklch(22.89% 0.098 309.2)
XYZxyz(1.9110, 1.0137, 4.6515)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A083E #1C3E08
analogous
#0F083E #2A083E #3E0837
triadic
#2A083E #3E2A08 #083E2A
tetradic
#2A083E #3E0F08 #1C3E08 #08373E
square
#2A083E #3E0F08 #1C3E08 #08373E
split-complementary
#2A083E #373E08 #083E0F
monochromatic
#12031B #12031B #2A083E #4F0F74 #7316AA

Accessibility & contrast

On white

17.46
#2A083E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2A083E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A083E
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A083E#FFFFFF#000000##FFFFFF
##2A083E1.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183F
Deuteranopia (green-blind)
#001A3D
Tritanopia (blue-blind)
#271523
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2a083e;
/* rgb */ color: rgb(42, 8, 62);
/* oklch */ color: oklch(22.9% 0.098 309.2);
Tailwind
colors: {
  custom: {
    50: '#664c74',
    500: '#2a083e',
    950: '#000000',
  },
}
SCSS
$custom: #2a083e;
$custom-light: #664c74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a083e",
  "rgb": {
    "r": 42,
    "g": 8,
    "b": 62
  },
  "hsl": {
    "h": 277.778,
    "s": 77.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22892,
    "c": 0.09758,
    "h": 309.2
  },
  "luminance": 0.01014
}

Semantic roles & 50–950 ramp

primary
#2A083E
secondary
#467D25
accent
#F4347B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A083E

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

Preview Lab → · Contrast checker → · Palette generator →

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