#2A2972#2A2972

#2A2972 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.122 H 278.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#2A2972
RGBrgb(42, 41, 114)
HSLhsl(241, 47%, 30%)
HSVhsv(241, 64%, 45%)
CMYKcmyk(63.2%, 64%, 0%, 55.3%)
CIE-LABlab(21.18, 24.35, -42.09)
CIE-LCHlch(21.18, 48.63, 300.05°)
OKLaboklab(33.05% 0.0169 -0.1211)
OKLCHoklch(33.05% 0.122 278)
XYZxyz(4.7841, 3.2927, 16.2998)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2972 #717229
analogous
#294C72 #2A2972 #4E2972
triadic
#2A2972 #722A29 #29722A
tetradic
#2A2972 #72294C #717229 #29724E
square
#2A2972 #72294C #717229 #29724E
split-complementary
#2A2972 #724E29 #4C7229
monochromatic
#090918 #191945 #2A2972 #3B399F #5554C1

Accessibility & contrast

On white

12.66
#2A2972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A2972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2972
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2972#FFFFFF#000000##FFFFFF
##2A29721.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2972;
/* rgb */ color: rgb(42, 41, 114);
/* oklch */ color: oklch(33.0% 0.122 278.0);
Tailwind
colors: {
  custom: {
    50: '#6c639b',
    500: '#2a2972',
    950: '#000000',
  },
}
SCSS
$custom: #2a2972;
$custom-light: #6c639b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2972",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 240.822,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33046,
    "c": 0.12224,
    "h": 278
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#2A2972
secondary
#A3A453
accent
#D751D5
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2972

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

Preview Lab → · Contrast checker → · Palette generator →

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