#2A283F#2A283F

#2A283F is a dark, muted blue. Relative luminance 0.024; OKLCH L 29.0% C 0.042 H 287.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2A283F
RGBrgb(42, 40, 63)
HSLhsl(245, 22%, 20%)
HSVhsv(245, 37%, 25%)
CMYKcmyk(33.3%, 36.5%, 0%, 75.3%)
CIE-LABlab(17.31, 7.27, -14.28)
CIE-LCHlch(17.31, 16.03, 296.96°)
OKLaboklab(29% 0.0125 -0.0397)
OKLCHoklch(29% 0.042 287.5)
XYZxyz(2.6106, 2.3686, 5.0213)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A283F #3D3F28
analogous
#28313F #2A283F #35283F
triadic
#2A283F #3F2A28 #283F2A
tetradic
#2A283F #3F2831 #3D3F28 #283F35
square
#2A283F #3F2831 #3D3F28 #283F35
split-complementary
#2A283F #3F3528 #313F28
monochromatic
#0C0C13 #11101A #2A283F #434064 #5C588A

Accessibility & contrast

On white

14.25
#2A283F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A283F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A283F
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A283F#FFFFFF#000000##FFFFFF
##2A283F1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222B40
Deuteranopia (green-blind)
#212A3E
Tritanopia (blue-blind)
#252C30
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a283f;
/* rgb */ color: rgb(42, 40, 63);
/* oklch */ color: oklch(29.0% 0.042 287.5);
Tailwind
colors: {
  custom: {
    50: '#646174',
    500: '#2a283f',
    950: '#000000',
  },
}
SCSS
$custom: #2a283f;
$custom-light: #646174;
$custom-dark: #000000;
JSON
{
  "hex": "#2a283f",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 63
  },
  "hsl": {
    "h": 245.217,
    "s": 22.33,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28997,
    "c": 0.0416,
    "h": 287.5
  },
  "luminance": 0.02369
}

Semantic roles & 50–950 ramp

primary
#2A283F
secondary
#6E7152
accent
#BF69B7
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050508
muted
#7A797B

Preview Lab

Preview with #2A283F

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

Preview Lab → · Contrast checker → · Palette generator →

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