#2A2797#2A2797

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

Color values

HEX#2A2797
RGBrgb(42, 39, 151)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 59%)
CMYKcmyk(72.2%, 74.2%, 0%, 40.8%)
CIE-LABlab(24.25, 38.71, -60.31)
CIE-LCHlch(24.25, 71.66, 302.69°)
OKLaboklab(36.35% 0.0137 -0.1744)
OKLCHoklch(36.35% 0.175 274.5)
XYZxyz(7.2644, 4.1769, 29.6955)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2797 #949727
analogous
#275C97 #2A2797 #622797
triadic
#2A2797 #972A27 #27972A
tetradic
#2A2797 #97275C #949727 #279762
square
#2A2797 #97275C #949727 #279762
split-complementary
#2A2797 #976227 #5C9727
monochromatic
#0F0E36 #1C1A66 #2A2797 #3834C8 #6562D6

Accessibility & contrast

On white

11.44
#2A2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2797
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2797#FFFFFF#000000##FFFFFF
##2A27971.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2797;
/* rgb */ color: rgb(42, 39, 151);
/* oklch */ color: oklch(36.3% 0.175 274.5);
Tailwind
colors: {
  custom: {
    50: '#7563b7',
    500: '#2a2797',
    950: '#000000',
  },
}
SCSS
$custom: #2a2797;
$custom-light: #7563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2797",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 241.607,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36345,
    "c": 0.17493,
    "h": 274.5
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#2A2797
secondary
#B9BC5E
accent
#E246DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2797

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

Preview Lab → · Contrast checker → · Palette generator →

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