#2A2391#2A2391

#2A2391 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.171 H 275.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2A2391
RGBrgb(42, 35, 145)
HSLhsl(244, 61%, 35%)
HSVhsv(244, 76%, 57%)
CMYKcmyk(71%, 75.9%, 0%, 43.1%)
CIE-LABlab(22.79, 39.01, -59.02)
CIE-LCHlch(22.79, 70.74, 303.46°)
OKLaboklab(35.12% 0.0172 -0.1706)
OKLCHoklch(35.12% 0.171 275.7)
XYZxyz(6.6650, 3.7380, 27.1528)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2391 #8A9123
analogous
#235391 #2A2391 #612391
triadic
#2A2391 #912A23 #23912A
tetradic
#2A2391 #912353 #8A9123 #239161
square
#2A2391 #912353 #8A9123 #239161
split-complementary
#2A2391 #916123 #539123
monochromatic
#0D0B2E #1C1760 #2A2391 #382FC2 #6058D7

Accessibility & contrast

On white

12.02
#2A2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2391
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2391#FFFFFF#000000##FFFFFF
##2A23911.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2391;
/* rgb */ color: rgb(42, 35, 145);
/* oklch */ color: oklch(35.1% 0.171 275.7);
Tailwind
colors: {
  custom: {
    50: '#7460b2',
    500: '#2a2391',
    950: '#000000',
  },
}
SCSS
$custom: #2a2391;
$custom-light: #7460b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2391",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 243.818,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35118,
    "c": 0.17146,
    "h": 275.7
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#2A2391
secondary
#B4BB55
accent
#E444DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2391

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

Preview Lab → · Contrast checker → · Palette generator →

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