#2A283A#2A283A

#2A283A is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.7% C 0.033 H 289.3°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2A283A
RGBrgb(42, 40, 58)
HSLhsl(247, 18%, 19%)
HSVhsv(247, 31%, 23%)
CMYKcmyk(27.6%, 31%, 0%, 77.3%)
CIE-LABlab(17.06, 5.74, -11.20)
CIE-LCHlch(17.06, 12.59, 297.11°)
OKLaboklab(28.72% 0.0108 -0.0309)
OKLCHoklch(28.72% 0.033 289.3)
XYZxyz(2.4772, 2.3153, 4.3185)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A283A #383A28
analogous
#282F3A #2A283A #33283A
triadic
#2A283A #3A2A28 #283A2A
tetradic
#2A283A #3A282F #383A28 #283A33
square
#2A283A #3A282F #383A28 #283A33
split-complementary
#2A283A #3A3328 #2F3A28
monochromatic
#0D0C12 #100F16 #2A283A #44415E #5E5A82

Accessibility & contrast

On white

14.35
#2A283A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A283A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A283A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A283A#FFFFFF#000000##FFFFFF
##2A283A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232A3B
Deuteranopia (green-blind)
#232A3A
Tritanopia (blue-blind)
#272B2E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a283a;
/* rgb */ color: rgb(42, 40, 58);
/* oklch */ color: oklch(28.7% 0.033 289.3);
Tailwind
colors: {
  custom: {
    50: '#646170',
    500: '#2a283a',
    950: '#000000',
  },
}
SCSS
$custom: #2a283a;
$custom-light: #646170;
$custom-dark: #000000;
JSON
{
  "hex": "#2a283a",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 58
  },
  "hsl": {
    "h": 246.667,
    "s": 18.367,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28719,
    "c": 0.0327,
    "h": 289.3
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#2A283A
secondary
#686B53
accent
#BB6DB2
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050507
muted
#79797A

Preview Lab

Preview with #2A283A

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

Preview Lab → · Contrast checker → · Palette generator →

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