#2A2480#2A2480

#2A2480 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.148 H 277.7°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2A2480
RGBrgb(42, 36, 128)
HSLhsl(244, 56%, 32%)
HSVhsv(244, 72%, 50%)
CMYKcmyk(67.2%, 71.9%, 0%, 49.8%)
CIE-LABlab(21.25, 32.60, -50.90)
CIE-LCHlch(21.25, 60.44, 302.64°)
OKLaboklab(33.5% 0.0198 -0.1469)
OKLCHoklch(33.5% 0.148 277.7)
XYZxyz(5.4807, 3.3121, 20.7684)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2480 #7A8024
analogous
#244C80 #2A2480 #582480
triadic
#2A2480 #802A24 #24802A
tetradic
#2A2480 #80244C #7A8024 #248058
square
#2A2480 #80244C #7A8024 #248058
split-complementary
#2A2480 #805824 #4C8024
monochromatic
#0B0920 #1A1750 #2A2480 #3A31B0 #5950CE

Accessibility & contrast

On white

12.63
#2A2480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A2480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2480
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2480#FFFFFF#000000##FFFFFF
##2A24801.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2480;
/* rgb */ color: rgb(42, 36, 128);
/* oklch */ color: oklch(33.5% 0.148 277.7);
Tailwind
colors: {
  custom: {
    50: '#7060a6',
    500: '#2a2480',
    950: '#000000',
  },
}
SCSS
$custom: #2a2480;
$custom-light: #7060a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2480",
  "rgb": {
    "r": 42,
    "g": 36,
    "b": 128
  },
  "hsl": {
    "h": 243.913,
    "s": 56.098,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.14822,
    "h": 277.7
  },
  "luminance": 0.03313
}

Semantic roles & 50–950 ramp

primary
#2A2480
secondary
#ABB24E
accent
#DF48D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2A2480

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

Preview Lab → · Contrast checker → · Palette generator →

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