#2A2091#2A2091

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

Color values

HEX#2A2091
RGBrgb(42, 32, 145)
HSLhsl(245, 64%, 35%)
HSVhsv(245, 78%, 57%)
CMYKcmyk(71%, 77.9%, 0%, 43.1%)
CIE-LABlab(22.19, 40.69, -60.00)
CIE-LCHlch(22.19, 72.49, 304.15°)
OKLaboklab(34.7% 0.0188 -0.1734)
OKLCHoklch(34.7% 0.174 276.2)
XYZxyz(6.5805, 3.5690, 27.1247)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2091 #879120
analogous
#204E91 #2A2091 #632091
triadic
#2A2091 #912A20 #20912A
tetradic
#2A2091 #91204E #879120 #209163
square
#2A2091 #91204E #879120 #209163
split-complementary
#2A2091 #916320 #4E9120
monochromatic
#0D0A2D #1B155F #2A2091 #392BC3 #5E52D9

Accessibility & contrast

On white

12.25
#2A2091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2091
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2091#FFFFFF#000000##FFFFFF
##2A20911.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2091;
/* rgb */ color: rgb(42, 32, 145);
/* oklch */ color: oklch(34.7% 0.174 276.2);
Tailwind
colors: {
  custom: {
    50: '#745eb2',
    500: '#2a2091',
    950: '#000000',
  },
}
SCSS
$custom: #2a2091;
$custom-light: #745eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2091",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 145
  },
  "hsl": {
    "h": 245.31,
    "s": 63.842,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34699,
    "c": 0.17443,
    "h": 276.2
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2091

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

Preview Lab → · Contrast checker → · Palette generator →

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