#2A2872#2A2872

#2A2872 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.124 H 278.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2A2872
RGBrgb(42, 40, 114)
HSLhsl(242, 48%, 30%)
HSVhsv(242, 65%, 45%)
CMYKcmyk(63.2%, 64.9%, 0%, 55.3%)
CIE-LABlab(20.92, 25.03, -42.51)
CIE-LCHlch(20.92, 49.33, 300.49°)
OKLaboklab(32.86% 0.0179 -0.1223)
OKLCHoklch(32.86% 0.124 278.3)
XYZxyz(4.7499, 3.2244, 16.2884)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2872 #707228
analogous
#284B72 #2A2872 #4F2872
triadic
#2A2872 #722A28 #28722A
tetradic
#2A2872 #72284B #707228 #28724F
square
#2A2872 #72284B #707228 #28724F
split-complementary
#2A2872 #724F28 #4B7228
monochromatic
#090817 #191845 #2A2872 #3B389F #5552C2

Accessibility & contrast

On white

12.77
#2A2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2872
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2872#FFFFFF#000000##FFFFFF
##2A28721.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2872;
/* rgb */ color: rgb(42, 40, 114);
/* oklch */ color: oklch(32.9% 0.124 278.3);
Tailwind
colors: {
  custom: {
    50: '#6c629b',
    500: '#2a2872',
    950: '#000000',
  },
}
SCSS
$custom: #2a2872;
$custom-light: #6c629b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2872",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 241.622,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32856,
    "c": 0.12362,
    "h": 278.3
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#2A2872
secondary
#A2A452
accent
#D850D4
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2872

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

Preview Lab → · Contrast checker → · Palette generator →

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