#2A2090#2A2090

#2A2090 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.173 H 276.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2A2090
RGBrgb(42, 32, 144)
HSLhsl(245, 64%, 35%)
HSVhsv(245, 78%, 56%)
CMYKcmyk(70.8%, 77.8%, 0%, 43.5%)
CIE-LABlab(22.08, 40.36, -59.56)
CIE-LCHlch(22.08, 71.94, 304.13°)
OKLaboklab(34.59% 0.019 -0.1721)
OKLCHoklch(34.59% 0.173 276.3)
XYZxyz(6.5038, 3.5383, 26.7204)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2090 #869020
analogous
#204E90 #2A2090 #622090
triadic
#2A2090 #902A20 #20902A
tetradic
#2A2090 #90204E #869020 #209062
square
#2A2090 #90204E #869020 #209062
split-complementary
#2A2090 #906220 #4E9020
monochromatic
#0D0A2C #1B155E #2A2090 #392BC2 #5E52D9

Accessibility & contrast

On white

12.30
#2A2090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A2090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2090
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2090#FFFFFF#000000##FFFFFF
##2A20901.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.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: #2a2090;
/* rgb */ color: rgb(42, 32, 144);
/* oklch */ color: oklch(34.6% 0.173 276.3);
Tailwind
colors: {
  custom: {
    50: '#745eb2',
    500: '#2a2090',
    950: '#000000',
  },
}
SCSS
$custom: #2a2090;
$custom-light: #745eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2090",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 144
  },
  "hsl": {
    "h": 245.357,
    "s": 63.636,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34589,
    "c": 0.1732,
    "h": 276.3
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#2A2090
secondary
#B2BC50
accent
#E741D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A2090

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

Preview Lab → · Contrast checker → · Palette generator →

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