#2A2D4F#2A2D4F

#2A2D4F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.061 H 278.4°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#2A2D4F
RGBrgb(42, 45, 79)
HSLhsl(235, 31%, 24%)
HSVhsv(235, 47%, 31%)
CMYKcmyk(46.8%, 43%, 0%, 69%)
CIE-LABlab(19.78, 8.98, -21.34)
CIE-LCHlch(19.78, 23.15, 292.82°)
OKLaboklab(31.18% 0.0089 -0.0601)
OKLCHoklch(31.18% 0.061 278.4)
XYZxyz(3.3041, 2.9334, 7.7877)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D4F #4F4C2A
analogous
#2A3F4F #2A2D4F #392A4F
triadic
#2A2D4F #4F2A2D #2D4F2A
tetradic
#2A2D4F #4F2A3F #4F4C2A #2A4F39
square
#2A2D4F #4F2A3F #4F4C2A #2A4F39
split-complementary
#2A2D4F #4F392A #3F4F2A
monochromatic
#0B0B14 #151627 #2A2D4F #3F4477 #545B9F

Accessibility & contrast

On white

13.23
#2A2D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D4F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D4F#FFFFFF#000000##FFFFFF
##2A2D4F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213150
Deuteranopia (green-blind)
#1E2E4E
Tritanopia (blue-blind)
#1E343A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2d4f;
/* rgb */ color: rgb(42, 45, 79);
/* oklch */ color: oklch(31.2% 0.061 278.4);
Tailwind
colors: {
  custom: {
    50: '#666580',
    500: '#2a2d4f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d4f;
$custom-light: #666580;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d4f",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 79
  },
  "hsl": {
    "h": 235.135,
    "s": 30.579,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3118,
    "c": 0.06076,
    "h": 278.4
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#2A2D4F
secondary
#817D54
accent
#BF61C7
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06050A
muted
#7A7A7C

Preview Lab

Preview with #2A2D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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