#2A2575#2A2575

#2A2575 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.132 H 278.9°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2A2575
RGBrgb(42, 37, 117)
HSLhsl(244, 52%, 30%)
HSVhsv(244, 68%, 46%)
CMYKcmyk(64.1%, 68.4%, 0%, 54.1%)
CIE-LABlab(20.44, 28.09, -45.23)
CIE-LCHlch(20.44, 53.24, 301.85°)
OKLaboklab(32.59% 0.0205 -0.1303)
OKLCHoklch(32.59% 0.132 278.9)
XYZxyz(4.8263, 3.0994, 17.1701)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2575 #707525
analogous
#254875 #2A2575 #522575
triadic
#2A2575 #752A25 #25752A
tetradic
#2A2575 #752548 #707525 #257552
square
#2A2575 #752548 #707525 #257552
split-complementary
#2A2575 #755225 #487525
monochromatic
#090818 #191647 #2A2575 #3B34A3 #554EC7

Accessibility & contrast

On white

12.96
#2A2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2575
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2575#FFFFFF#000000##FFFFFF
##2A25751.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003A49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a2575;
/* rgb */ color: rgb(42, 37, 117);
/* oklch */ color: oklch(32.6% 0.132 278.9);
Tailwind
colors: {
  custom: {
    50: '#6d609e',
    500: '#2a2575',
    950: '#000000',
  },
}
SCSS
$custom: #2a2575;
$custom-light: #6d609e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2575",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 243.75,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32587,
    "c": 0.13189,
    "h": 278.9
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#2A2575
secondary
#A2A84E
accent
#DB4CD2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2A2575

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

Preview Lab → · Contrast checker → · Palette generator →

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