#2A2092#2A2092

#2A2092 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.176 H 276.1°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2A2092
RGBrgb(42, 32, 146)
HSLhsl(245, 64%, 35%)
HSVhsv(245, 78%, 57%)
CMYKcmyk(71.2%, 78.1%, 0%, 42.7%)
CIE-LABlab(22.30, 41.02, -60.43)
CIE-LCHlch(22.30, 73.04, 304.17°)
OKLaboklab(34.81% 0.0186 -0.1747)
OKLCHoklch(34.81% 0.176 276.1)
XYZxyz(6.6580, 3.6000, 27.5325)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2092 #889220
analogous
#204F92 #2A2092 #632092
triadic
#2A2092 #922A20 #20922A
tetradic
#2A2092 #92204F #889220 #209263
square
#2A2092 #92204F #889220 #209263
split-complementary
#2A2092 #926320 #4F9220
monochromatic
#0D0A2E #1C1560 #2A2092 #382BC4 #5F53D9

Accessibility & contrast

On white

12.21
#2A2092 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2092
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2092#FFFFFF#000000##FFFFFF
##2A20921.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2092;
/* rgb */ color: rgb(42, 32, 146);
/* oklch */ color: oklch(34.8% 0.176 276.1);
Tailwind
colors: {
  custom: {
    50: '#745eb3',
    500: '#2a2092',
    950: '#000000',
  },
}
SCSS
$custom: #2a2092;
$custom-light: #745eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2092",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 146
  },
  "hsl": {
    "h": 245.263,
    "s": 64.045,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34809,
    "c": 0.17568,
    "h": 276.1
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#2A2092
secondary
#B3BD51
accent
#E741D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A2092

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

Preview Lab → · Contrast checker → · Palette generator →

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