#2A2791#2A2791

#2A2791 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.167 H 275.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2A2791
RGBrgb(42, 39, 145)
HSLhsl(242, 58%, 36%)
HSVhsv(242, 73%, 57%)
CMYKcmyk(71%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.63, 36.65, -57.63)
CIE-LCHlch(23.63, 68.29, 302.46°)
OKLaboklab(35.72% 0.0148 -0.1666)
OKLCHoklch(35.72% 0.167 275.1)
XYZxyz(6.7895, 3.9870, 27.1943)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2791 #8E9127
analogous
#275991 #2A2791 #5F2791
triadic
#2A2791 #912A27 #27912A
tetradic
#2A2791 #912759 #8E9127 #27915F
square
#2A2791 #912759 #8E9127 #27915F
split-complementary
#2A2791 #915F27 #599127
monochromatic
#0E0D31 #1C1A61 #2A2791 #3834C1 #625FD4

Accessibility & contrast

On white

11.68
#2A2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2791
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2791#FFFFFF#000000##FFFFFF
##2A27911.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2791;
/* rgb */ color: rgb(42, 39, 145);
/* oklch */ color: oklch(35.7% 0.167 275.1);
Tailwind
colors: {
  custom: {
    50: '#7362b2',
    500: '#2a2791',
    950: '#000000',
  },
}
SCSS
$custom: #2a2791;
$custom-light: #7362b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2791",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 241.698,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35717,
    "c": 0.16723,
    "h": 275.1
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#2A2791
secondary
#B6B95B
accent
#E147DC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A2791

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

Preview Lab → · Contrast checker → · Palette generator →

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