#2A2557#2A2557

#2A2557 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.0% C 0.087 H 284.4°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#2A2557
RGBrgb(42, 37, 87)
HSLhsl(246, 40%, 24%)
HSVhsv(246, 57%, 34%)
CMYKcmyk(51.7%, 57.5%, 0%, 65.9%)
CIE-LABlab(17.93, 17.44, -29.64)
CIE-LCHlch(17.93, 34.40, 300.48°)
OKLaboklab(29.96% 0.0216 -0.0845)
OKLCHoklch(29.96% 0.087 284.4)
XYZxyz(3.3362, 2.5033, 9.3224)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2557 #525725
analogous
#253957 #2A2557 #432557
triadic
#2A2557 #572A25 #25572A
tetradic
#2A2557 #572539 #525725 #255743
square
#2A2557 #572539 #525725 #255743
split-complementary
#2A2557 #574325 #395725
monochromatic
#0A0915 #15132C #2A2557 #3F3782 #534AAD

Accessibility & contrast

On white

13.99
#2A2557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A2557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2557
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2557#FFFFFF#000000##FFFFFF
##2A25571.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2D59
Deuteranopia (green-blind)
#092A56
Tritanopia (blue-blind)
#1A303A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a2557;
/* rgb */ color: rgb(42, 37, 87);
/* oklch */ color: oklch(30.0% 0.087 284.4);
Tailwind
colors: {
  custom: {
    50: '#675f87',
    500: '#2a2557',
    950: '#000000',
  },
}
SCSS
$custom: #2a2557;
$custom-light: #675f87;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2557",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 87
  },
  "hsl": {
    "h": 246,
    "s": 40.323,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29959,
    "c": 0.0872,
    "h": 284.4
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#2A2557
secondary
#848A4D
accent
#D058C4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2A2557

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

Preview Lab → · Contrast checker → · Palette generator →

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