#2A2D51#2A2D51

#2A2D51 is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.064 H 278.4°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#2A2D51
RGBrgb(42, 45, 81)
HSLhsl(235, 32%, 24%)
HSVhsv(235, 48%, 32%)
CMYKcmyk(48.1%, 44.4%, 0%, 68.2%)
CIE-LABlab(19.89, 9.67, -22.49)
CIE-LCHlch(19.89, 24.48, 293.27°)
OKLaboklab(31.31% 0.0094 -0.0635)
OKLCHoklch(31.31% 0.064 278.4)
XYZxyz(3.3780, 2.9629, 8.1769)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D51 #514E2A
analogous
#2A4151 #2A2D51 #3B2A51
triadic
#2A2D51 #512A2D #2D512A
tetradic
#2A2D51 #512A41 #514E2A #2A513B
square
#2A2D51 #512A41 #514E2A #2A513B
split-complementary
#2A2D51 #513B2A #41512A
monochromatic
#0A0B14 #151729 #2A2D51 #3F4379 #545AA2

Accessibility & contrast

On white

13.19
#2A2D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A2D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D51
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D51#FFFFFF#000000##FFFFFF
##2A2D511.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203252
Deuteranopia (green-blind)
#1D2F50
Tritanopia (blue-blind)
#1D343B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2d51;
/* rgb */ color: rgb(42, 45, 81);
/* oklch */ color: oklch(31.3% 0.064 278.4);
Tailwind
colors: {
  custom: {
    50: '#666582',
    500: '#2a2d51',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d51;
$custom-light: #666582;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d51",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 81
  },
  "hsl": {
    "h": 235.385,
    "s": 31.707,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31311,
    "c": 0.06416,
    "h": 278.4
  },
  "luminance": 0.02963
}

Semantic roles & 50–950 ramp

primary
#2A2D51
secondary
#838054
accent
#C060C8
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06050A
muted
#7A7A7C

Preview Lab

Preview with #2A2D51

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

Preview Lab → · Contrast checker → · Palette generator →

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