#2A2085#2A2085

#2A2085 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.159 H 277.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2A2085
RGBrgb(42, 32, 133)
HSLhsl(246, 61%, 32%)
HSVhsv(246, 76%, 52%)
CMYKcmyk(68.4%, 75.9%, 0%, 47.8%)
CIE-LABlab(20.90, 36.71, -54.64)
CIE-LCHlch(20.90, 65.83, 303.90°)
OKLaboklab(33.4% 0.0216 -0.1578)
OKLCHoklch(33.4% 0.159 277.8)
XYZxyz(5.7036, 3.2182, 22.5064)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2085 #7B8520
analogous
#204885 #2A2085 #5D2085
triadic
#2A2085 #852A20 #20852A
tetradic
#2A2085 #852048 #7B8520 #20855D
square
#2A2085 #852048 #7B8520 #20855D
split-complementary
#2A2085 #855D20 #488520
monochromatic
#0B0822 #1A1454 #2A2085 #3A2CB6 #594CD4

Accessibility & contrast

On white

12.78
#2A2085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2A2085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2085
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2085#FFFFFF#000000##FFFFFF
##2A20851.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2085;
/* rgb */ color: rgb(42, 32, 133);
/* oklch */ color: oklch(33.4% 0.159 277.8);
Tailwind
colors: {
  custom: {
    50: '#715daa',
    500: '#2a2085',
    950: '#000000',
  },
}
SCSS
$custom: #2a2085;
$custom-light: #715daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2085",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 245.941,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33399,
    "c": 0.15928,
    "h": 277.8
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#2A2085
secondary
#ACB74A
accent
#E443D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2085

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

Preview Lab → · Contrast checker → · Palette generator →

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