#2A2576#2A2576

#2A2576 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.133 H 278.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2A2576
RGBrgb(42, 37, 118)
HSLhsl(244, 52%, 30%)
HSVhsv(244, 69%, 46%)
CMYKcmyk(64.4%, 68.6%, 0%, 53.7%)
CIE-LABlab(20.53, 28.45, -45.72)
CIE-LCHlch(20.53, 53.85, 301.89°)
OKLaboklab(32.68% 0.0204 -0.1317)
OKLCHoklch(32.68% 0.133 278.8)
XYZxyz(4.8854, 3.1230, 17.4814)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2576 #717625
analogous
#254876 #2A2576 #522576
triadic
#2A2576 #762A25 #25762A
tetradic
#2A2576 #762548 #717625 #257652
square
#2A2576 #762548 #717625 #257652
split-complementary
#2A2576 #765225 #487625
monochromatic
#090819 #191647 #2A2576 #3B34A5 #554EC7

Accessibility & contrast

On white

12.93
#2A2576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A2576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2576
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2576#FFFFFF#000000##FFFFFF
##2A25761.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a2576;
/* rgb */ color: rgb(42, 37, 118);
/* oklch */ color: oklch(32.7% 0.133 278.8);
Tailwind
colors: {
  custom: {
    50: '#6d609e',
    500: '#2a2576',
    950: '#000000',
  },
}
SCSS
$custom: #2a2576;
$custom-light: #6d609e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2576",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 118
  },
  "hsl": {
    "h": 243.704,
    "s": 52.258,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32683,
    "c": 0.1333,
    "h": 278.8
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#2A2576
secondary
#A3A94E
accent
#DC4CD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2576

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

Preview Lab → · Contrast checker → · Palette generator →

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