#2A063F#2A063F

#2A063F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.102 H 309.0°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#2A063F
RGBrgb(42, 6, 63)
HSLhsl(278, 83%, 14%)
HSVhsv(278, 90%, 25%)
CMYKcmyk(33.3%, 90.5%, 0%, 75.3%)
CIE-LABlab(8.84, 29.05, -27.78)
CIE-LCHlch(8.84, 40.20, 316.28°)
OKLaboklab(22.73% 0.0639 -0.0789)
OKLCHoklch(22.73% 0.102 309)
XYZxyz(1.9170, 0.9814, 4.7901)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A063F #1B3F06
analogous
#0D063F #2A063F #3F0637
triadic
#2A063F #3F2A06 #063F2A
tetradic
#2A063F #3F0D06 #1B3F06 #06373F
square
#2A063F #3F0D06 #1B3F06 #06373F
split-complementary
#2A063F #373F06 #063F0D
monochromatic
#13031C #13031C #2A063F #4F0B77 #7511AF

Accessibility & contrast

On white

17.56
#2A063F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A063F
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A063F#FFFFFF#000000##FFFFFF
##2A063F1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001841
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#271423
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #2a063f;
/* rgb */ color: rgb(42, 6, 63);
/* oklch */ color: oklch(22.7% 0.102 309.0);
Tailwind
colors: {
  custom: {
    50: '#674b74',
    500: '#2a063f',
    950: '#000000',
  },
}
SCSS
$custom: #2a063f;
$custom-light: #674b74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a063f",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 63
  },
  "hsl": {
    "h": 277.895,
    "s": 82.609,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22732,
    "c": 0.10156,
    "h": 309
  },
  "luminance": 0.00981
}

Semantic roles & 50–950 ramp

primary
#2A063F
secondary
#447F22
accent
#F92F79
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A063F

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

Preview Lab → · Contrast checker → · Palette generator →

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