#2A1990#2A1990

#2A1990 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.179 H 277.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2A1990
RGBrgb(42, 25, 144)
HSLhsl(249, 70%, 33%)
HSVhsv(249, 83%, 56%)
CMYKcmyk(70.8%, 82.6%, 0%, 43.5%)
CIE-LABlab(20.83, 43.98, -61.63)
CIE-LCHlch(20.83, 75.71, 305.51°)
OKLaboklab(33.72% 0.0224 -0.1781)
OKLCHoklch(33.72% 0.179 277.2)
XYZxyz(6.3349, 3.2005, 26.6641)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1990 #7F9019
analogous
#194490 #2A1990 #651990
triadic
#2A1990 #902A19 #19902A
tetradic
#2A1990 #901944 #7F9019 #199065
square
#2A1990 #901944 #7F9019 #199065
split-complementary
#2A1990 #906519 #449019
monochromatic
#0C0728 #1B105C #2A1990 #3922C4 #5B45DF

Accessibility & contrast

On white

12.80
#2A1990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1990
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1990#FFFFFF#000000##FFFFFF
##2A19901.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002D8E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a1990;
/* rgb */ color: rgb(42, 25, 144);
/* oklch */ color: oklch(33.7% 0.179 277.2);
Tailwind
colors: {
  custom: {
    50: '#745ab2',
    500: '#2a1990',
    950: '#000000',
  },
}
SCSS
$custom: #2a1990;
$custom-light: #745ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1990",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 248.571,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33715,
    "c": 0.17949,
    "h": 277.2
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#2A1990
secondary
#AEC045
accent
#ED3BD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A1990

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

Preview Lab → · Contrast checker → · Palette generator →

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