#2A2696#2A2696

#2A2696 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.175 H 274.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2696
RGBrgb(42, 38, 150)
HSLhsl(242, 60%, 37%)
HSVhsv(242, 75%, 59%)
CMYKcmyk(72%, 74.7%, 0%, 41.2%)
CIE-LABlab(23.93, 38.95, -60.21)
CIE-LCHlch(23.93, 71.71, 302.90°)
OKLaboklab(36.09% 0.0145 -0.1741)
OKLCHoklch(36.09% 0.175 274.7)
XYZxyz(7.1512, 4.0798, 29.2589)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2696 #929626
analogous
#265A96 #2A2696 #622696
triadic
#2A2696 #962A26 #26962A
tetradic
#2A2696 #96265A #929626 #269662
square
#2A2696 #96265A #929626 #269662
split-complementary
#2A2696 #966226 #5A9626
monochromatic
#0F0D34 #1C1A65 #2A2696 #3832C7 #6460D7

Accessibility & contrast

On white

11.56
#2A2696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2696
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2696#FFFFFF#000000##FFFFFF
##2A26961.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.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: #2a2696;
/* rgb */ color: rgb(42, 38, 150);
/* oklch */ color: oklch(36.1% 0.175 274.7);
Tailwind
colors: {
  custom: {
    50: '#7562b6',
    500: '#2a2696',
    950: '#000000',
  },
}
SCSS
$custom: #2a2696;
$custom-light: #7562b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2696",
  "rgb": {
    "r": 42,
    "g": 38,
    "b": 150
  },
  "hsl": {
    "h": 242.143,
    "s": 59.574,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3609,
    "c": 0.1747,
    "h": 274.7
  },
  "luminance": 0.0408
}

Semantic roles & 50–950 ramp

primary
#2A2696
secondary
#B8BC5C
accent
#E345DD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2A2696

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

Preview Lab → · Contrast checker → · Palette generator →

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