#2A2772#2A2772

#2A2772 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.125 H 278.7°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2A2772
RGBrgb(42, 39, 114)
HSLhsl(242, 49%, 30%)
HSVhsv(242, 66%, 45%)
CMYKcmyk(63.2%, 65.8%, 0%, 55.3%)
CIE-LABlab(20.67, 25.70, -42.93)
CIE-LCHlch(20.67, 50.04, 300.91°)
OKLaboklab(32.67% 0.0189 -0.1235)
OKLCHoklch(32.67% 0.125 278.7)
XYZxyz(4.7167, 3.1578, 16.2773)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2772 #6F7227
analogous
#274972 #2A2772 #502772
triadic
#2A2772 #722A27 #27722A
tetradic
#2A2772 #722749 #6F7227 #277250
square
#2A2772 #722749 #6F7227 #277250
split-complementary
#2A2772 #725027 #497227
monochromatic
#080817 #191744 #2A2772 #3B37A0 #5550C3

Accessibility & contrast

On white

12.87
#2A2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2772
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2772#FFFFFF#000000##FFFFFF
##2A27721.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2772;
/* rgb */ color: rgb(42, 39, 114);
/* oklch */ color: oklch(32.7% 0.125 278.7);
Tailwind
colors: {
  custom: {
    50: '#6c619b',
    500: '#2a2772',
    950: '#000000',
  },
}
SCSS
$custom: #2a2772;
$custom-light: #6c619b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2772",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 242.4,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.32669,
    "c": 0.12498,
    "h": 278.7
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#2A2772
secondary
#A1A450
accent
#D94FD3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2772

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

Preview Lab → · Contrast checker → · Palette generator →

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