#2A2284#2A2284

#2A2284 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.156 H 277.5°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#2A2284
RGBrgb(42, 34, 132)
HSLhsl(245, 59%, 33%)
HSVhsv(245, 74%, 52%)
CMYKcmyk(68.2%, 74.2%, 0%, 48.2%)
CIE-LABlab(21.21, 35.20, -53.49)
CIE-LCHlch(21.21, 64.03, 303.35°)
OKLaboklab(33.59% 0.0205 -0.1545)
OKLCHoklch(33.59% 0.156 277.5)
XYZxyz(5.6904, 3.3018, 22.1627)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2284 #7C8422
analogous
#224B84 #2A2284 #5B2284
triadic
#2A2284 #842A22 #22842A
tetradic
#2A2284 #84224B #7C8422 #22845B
square
#2A2284 #84224B #7C8422 #22845B
split-complementary
#2A2284 #845B22 #4B8422
monochromatic
#0B0923 #1B1553 #2A2284 #392FB5 #594FD2

Accessibility & contrast

On white

12.65
#2A2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2284
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2284#FFFFFF#000000##FFFFFF
##2A22841.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2284;
/* rgb */ color: rgb(42, 34, 132);
/* oklch */ color: oklch(33.6% 0.156 277.5);
Tailwind
colors: {
  custom: {
    50: '#715ea9',
    500: '#2a2284',
    950: '#000000',
  },
}
SCSS
$custom: #2a2284;
$custom-light: #715ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2284",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 244.898,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33593,
    "c": 0.15581,
    "h": 277.5
  },
  "luminance": 0.03302
}

Semantic roles & 50–950 ramp

primary
#2A2284
secondary
#ADB54D
accent
#E246D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2A2284

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

Preview Lab → · Contrast checker → · Palette generator →

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