#2A2094#2A2094

#2A2094 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.178 H 275.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#2A2094
RGBrgb(42, 32, 148)
HSLhsl(245, 64%, 35%)
HSVhsv(245, 78%, 58%)
CMYKcmyk(71.6%, 78.4%, 0%, 42%)
CIE-LABlab(22.52, 41.67, -61.30)
CIE-LCHlch(22.52, 74.13, 304.20°)
OKLaboklab(35.03% 0.0181 -0.1772)
OKLCHoklch(35.03% 0.178 275.8)
XYZxyz(6.8149, 3.6627, 28.3591)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2094 #8A9420
analogous
#205094 #2A2094 #642094
triadic
#2A2094 #942A20 #20942A
tetradic
#2A2094 #942050 #8A9420 #209464
square
#2A2094 #942050 #8A9420 #209464
split-complementary
#2A2094 #946420 #509420
monochromatic
#0D0A2F #1C1562 #2A2094 #382BC6 #6054DA

Accessibility & contrast

On white

12.12
#2A2094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2094
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2094#FFFFFF#000000##FFFFFF
##2A20941.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2094;
/* rgb */ color: rgb(42, 32, 148);
/* oklch */ color: oklch(35.0% 0.178 275.8);
Tailwind
colors: {
  custom: {
    50: '#755eb5',
    500: '#2a2094',
    950: '#000000',
  },
}
SCSS
$custom: #2a2094;
$custom-light: #755eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2094",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 148
  },
  "hsl": {
    "h": 245.172,
    "s": 64.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3503,
    "c": 0.17815,
    "h": 275.8
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#2A2094
secondary
#B4BE52
accent
#E740D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A2094

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

Preview Lab → · Contrast checker → · Palette generator →

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