#2A283C#2A283C

#2A283C is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.8% C 0.036 H 288.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2A283C
RGBrgb(42, 40, 60)
HSLhsl(246, 20%, 20%)
HSVhsv(246, 33%, 24%)
CMYKcmyk(30%, 33.3%, 0%, 76.5%)
CIE-LABlab(17.16, 6.34, -12.44)
CIE-LCHlch(17.16, 13.96, 297.00°)
OKLaboklab(28.83% 0.0115 -0.0344)
OKLCHoklch(28.83% 0.036 288.5)
XYZxyz(2.5290, 2.3360, 4.5917)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A283C #3A3C28
analogous
#28303C #2A283C #34283C
triadic
#2A283C #3C2A28 #283C2A
tetradic
#2A283C #3C2830 #3A3C28 #283C34
square
#2A283C #3C2830 #3A3C28 #283C34
split-complementary
#2A283C #3C3428 #303C28
monochromatic
#0D0C12 #101017 #2A283C #444061 #5D5985

Accessibility & contrast

On white

14.31
#2A283C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A283C
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A283C#FFFFFF#000000##FFFFFF
##2A283C1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232B3D
Deuteranopia (green-blind)
#232A3B
Tritanopia (blue-blind)
#262B2F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a283c;
/* rgb */ color: rgb(42, 40, 60);
/* oklch */ color: oklch(28.8% 0.036 288.5);
Tailwind
colors: {
  custom: {
    50: '#646171',
    500: '#2a283c',
    950: '#000000',
  },
}
SCSS
$custom: #2a283c;
$custom-light: #646171;
$custom-dark: #000000;
JSON
{
  "hex": "#2a283c",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 60
  },
  "hsl": {
    "h": 246,
    "s": 20,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28828,
    "c": 0.03627,
    "h": 288.5
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#2A283C
secondary
#6B6D52
accent
#BD6BB4
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050507
muted
#79797A

Preview Lab

Preview with #2A283C

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

Preview Lab → · Contrast checker → · Palette generator →

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