#2A2796#2A2796

#2A2796 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.174 H 274.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2A2796
RGBrgb(42, 39, 150)
HSLhsl(242, 59%, 37%)
HSVhsv(242, 74%, 59%)
CMYKcmyk(72%, 74%, 0%, 41.2%)
CIE-LABlab(24.14, 38.37, -59.86)
CIE-LCHlch(24.14, 71.10, 302.66°)
OKLaboklab(36.24% 0.0139 -0.1731)
OKLCHoklch(36.24% 0.174 274.6)
XYZxyz(7.1836, 4.1446, 29.2697)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2796 #939627
analogous
#275B96 #2A2796 #622796
triadic
#2A2796 #962A27 #27962A
tetradic
#2A2796 #96275B #939627 #279662
square
#2A2796 #96275B #939627 #279662
split-complementary
#2A2796 #966227 #5B9627
monochromatic
#0F0E35 #1C1A65 #2A2796 #3834C7 #6561D6

Accessibility & contrast

On white

11.48
#2A2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A2796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2796
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2796#FFFFFF#000000##FFFFFF
##2A27961.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2796;
/* rgb */ color: rgb(42, 39, 150);
/* oklch */ color: oklch(36.2% 0.174 274.6);
Tailwind
colors: {
  custom: {
    50: '#7462b6',
    500: '#2a2796',
    950: '#000000',
  },
}
SCSS
$custom: #2a2796;
$custom-light: #7462b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2796",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 241.622,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3624,
    "c": 0.17365,
    "h": 274.6
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2796

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

Preview Lab → · Contrast checker → · Palette generator →

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