#2A2190#2A2190

#2A2190 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.172 H 276.2°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2A2190
RGBrgb(42, 33, 144)
HSLhsl(245, 63%, 35%)
HSVhsv(245, 77%, 56%)
CMYKcmyk(70.8%, 77.1%, 0%, 43.5%)
CIE-LABlab(22.28, 39.81, -59.23)
CIE-LCHlch(22.28, 71.37, 303.90°)
OKLaboklab(34.73% 0.0185 -0.1712)
OKLCHoklch(34.73% 0.172 276.2)
XYZxyz(6.5311, 3.5930, 26.7295)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2190 #879021
analogous
#215090 #2A2190 #622190
triadic
#2A2190 #902A21 #21902A
tetradic
#2A2190 #902150 #879021 #219062
square
#2A2190 #902150 #879021 #219062
split-complementary
#2A2190 #906221 #509021
monochromatic
#0D0A2C #1B165E #2A2190 #392CC2 #5E54D8

Accessibility & contrast

On white

12.22
#2A2190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A2190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2190
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2190#FFFFFF#000000##FFFFFF
##2A21901.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2190;
/* rgb */ color: rgb(42, 33, 144);
/* oklch */ color: oklch(34.7% 0.172 276.2);
Tailwind
colors: {
  custom: {
    50: '#745eb2',
    500: '#2a2190',
    950: '#000000',
  },
}
SCSS
$custom: #2a2190;
$custom-light: #745eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2190",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 244.865,
    "s": 62.712,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34726,
    "c": 0.17222,
    "h": 276.2
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#2A2190
secondary
#B3BB51
accent
#E642D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A2190

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

Preview Lab → · Contrast checker → · Palette generator →

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