#2A2A91#2A2A91

#2A2A91 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.164 H 274.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2A2A91
RGBrgb(42, 42, 145)
HSLhsl(240, 55%, 37%)
HSVhsv(240, 71%, 57%)
CMYKcmyk(71%, 71%, 0%, 43.1%)
CIE-LABlab(24.30, 34.81, -56.53)
CIE-LCHlch(24.30, 66.39, 301.62°)
OKLaboklab(36.2% 0.0129 -0.1634)
OKLCHoklch(36.2% 0.164 274.5)
XYZxyz(6.8919, 4.1919, 27.2285)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A91 #91912A
analogous
#2A5E91 #2A2A91 #5E2A91
triadic
#2A2A91 #912A2A #2A912A
tetradic
#2A2A91 #912A5E #91912A #2A915E
square
#2A2A91 #912A5E #91912A #2A915E
split-complementary
#2A2A91 #915E2A #5E912A
monochromatic
#0F0F32 #1C1C62 #2A2A91 #3838C0 #6363D2

Accessibility & contrast

On white

11.42
#2A2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A91
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A91#FFFFFF#000000##FFFFFF
##2A2A911.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00358F
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2a91;
/* rgb */ color: rgb(42, 42, 145);
/* oklch */ color: oklch(36.2% 0.164 274.5);
Tailwind
colors: {
  custom: {
    50: '#7364b2',
    500: '#2a2a91',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a91;
$custom-light: #7364b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a91",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 240,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36195,
    "c": 0.16388,
    "h": 274.5
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#2A2A91
secondary
#B8B85F
accent
#DE49DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #2A2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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