#2A2799#2A2799

#2A2799 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.177 H 274.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2A2799
RGBrgb(42, 39, 153)
HSLhsl(242, 59%, 38%)
HSVhsv(242, 75%, 60%)
CMYKcmyk(72.5%, 74.5%, 0%, 40%)
CIE-LABlab(24.46, 39.39, -61.19)
CIE-LCHlch(24.46, 72.77, 302.77°)
OKLaboklab(36.56% 0.0133 -0.177)
OKLCHoklch(36.56% 0.177 274.3)
XYZxyz(7.4282, 4.2425, 30.5582)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2799 #969927
analogous
#275D99 #2A2799 #632799
triadic
#2A2799 #992A27 #27992A
tetradic
#2A2799 #99275D #969927 #279963
square
#2A2799 #99275D #969927 #279963
split-complementary
#2A2799 #996327 #5D9927
monochromatic
#0F0E37 #1D1B68 #2A2799 #3733CA #6663D7

Accessibility & contrast

On white

11.36
#2A2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2A2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2799
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2799#FFFFFF#000000##FFFFFF
##2A27991.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2799;
/* rgb */ color: rgb(42, 39, 153);
/* oklch */ color: oklch(36.6% 0.177 274.3);
Tailwind
colors: {
  custom: {
    50: '#7563b8',
    500: '#2a2799',
    950: '#000000',
  },
}
SCSS
$custom: #2a2799;
$custom-light: #7563b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2799",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 241.579,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36557,
    "c": 0.17746,
    "h": 274.3
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#2A2799
secondary
#BABD5F
accent
#E345DE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2A2799

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

Preview Lab → · Contrast checker → · Palette generator →

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