#2A2798#2A2798

#2A2798 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.176 H 274.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2A2798
RGBrgb(42, 39, 152)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 60%)
CMYKcmyk(72.4%, 74.3%, 0%, 40.4%)
CIE-LABlab(24.35, 39.05, -60.75)
CIE-LCHlch(24.35, 72.22, 302.73°)
OKLaboklab(36.45% 0.0135 -0.1757)
OKLCHoklch(36.45% 0.176 274.4)
XYZxyz(7.3460, 4.2096, 30.1251)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2798 #959827
analogous
#275C98 #2A2798 #632798
triadic
#2A2798 #982A27 #27982A
tetradic
#2A2798 #98275C #959827 #279863
square
#2A2798 #98275C #959827 #279863
split-complementary
#2A2798 #986327 #5C9827
monochromatic
#0F0E37 #1D1B67 #2A2798 #3733C9 #6663D7

Accessibility & contrast

On white

11.40
#2A2798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2798
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2798#FFFFFF#000000##FFFFFF
##2A27981.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2798;
/* rgb */ color: rgb(42, 39, 152);
/* oklch */ color: oklch(36.5% 0.176 274.4);
Tailwind
colors: {
  custom: {
    50: '#7563b7',
    500: '#2a2798',
    950: '#000000',
  },
}
SCSS
$custom: #2a2798;
$custom-light: #7563b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2798",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 241.593,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36451,
    "c": 0.1762,
    "h": 274.4
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#2A2798
secondary
#BABC5E
accent
#E245DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2798

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

Preview Lab → · Contrast checker → · Palette generator →

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