#2A2D52#2A2D52

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

Color values

HEX#2A2D52
RGBrgb(42, 45, 82)
HSLhsl(236, 32%, 24%)
HSVhsv(236, 49%, 32%)
CMYKcmyk(48.8%, 45.1%, 0%, 67.8%)
CIE-LABlab(19.96, 10.02, -23.07)
CIE-LCHlch(19.96, 25.15, 293.48°)
OKLaboklab(31.38% 0.0096 -0.0651)
OKLCHoklch(31.38% 0.066 278.4)
XYZxyz(3.4158, 2.9780, 8.3758)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D52 #524F2A
analogous
#2A4152 #2A2D52 #3B2A52
triadic
#2A2D52 #522A2D #2D522A
tetradic
#2A2D52 #522A41 #524F2A #2A523B
square
#2A2D52 #522A41 #524F2A #2A523B
split-complementary
#2A2D52 #523B2A #41522A
monochromatic
#0A0B14 #15172A #2A2D52 #3F437A #5359A3

Accessibility & contrast

On white

13.16
#2A2D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A2D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D52
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D52#FFFFFF#000000##FFFFFF
##2A2D521.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3253
Deuteranopia (green-blind)
#1C2F51
Tritanopia (blue-blind)
#1D353B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2d52;
/* rgb */ color: rgb(42, 45, 82);
/* oklch */ color: oklch(31.4% 0.066 278.4);
Tailwind
colors: {
  custom: {
    50: '#666583',
    500: '#2a2d52',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d52;
$custom-light: #666583;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d52",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 82
  },
  "hsl": {
    "h": 235.5,
    "s": 32.258,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31377,
    "c": 0.06584,
    "h": 278.4
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#2A2D52
secondary
#848154
accent
#C15FC8
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06050A
muted
#7A7A7C

Preview Lab

Preview with #2A2D52

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

Preview Lab → · Contrast checker → · Palette generator →

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