#2A2290#2A2290

#2A2290 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.171 H 276.0°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#2A2290
RGBrgb(42, 34, 144)
HSLhsl(244, 62%, 35%)
HSVhsv(244, 76%, 56%)
CMYKcmyk(70.8%, 76.4%, 0%, 43.5%)
CIE-LABlab(22.48, 39.24, -58.91)
CIE-LCHlch(22.48, 70.78, 303.67°)
OKLaboklab(34.87% 0.0179 -0.1703)
OKLCHoklch(34.87% 0.171 276)
XYZxyz(6.5593, 3.6493, 26.7389)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2290 #889022
analogous
#225190 #2A2290 #612290
triadic
#2A2290 #902A22 #22902A
tetradic
#2A2290 #902251 #889022 #229061
square
#2A2290 #902251 #889022 #229061
split-complementary
#2A2290 #906122 #519022
monochromatic
#0D0B2D #1C165E #2A2290 #382EC2 #5F55D7

Accessibility & contrast

On white

12.14
#2A2290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2290
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2290#FFFFFF#000000##FFFFFF
##2A22901.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2290;
/* rgb */ color: rgb(42, 34, 144);
/* oklch */ color: oklch(34.9% 0.171 276.0);
Tailwind
colors: {
  custom: {
    50: '#745fb2',
    500: '#2a2290',
    950: '#000000',
  },
}
SCSS
$custom: #2a2290;
$custom-light: #745fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2290",
  "rgb": {
    "r": 42,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 244.364,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.17121,
    "h": 276
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#2A2290
secondary
#B3BB53
accent
#E543D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2290

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

Preview Lab → · Contrast checker → · Palette generator →

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