#2A3042#2A3042

#2A3042 is a dark, muted blue. Relative luminance 0.030; OKLCH L 31.2% C 0.034 H 270.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2A3042
RGBrgb(42, 48, 66)
HSLhsl(225, 22%, 21%)
HSVhsv(225, 36%, 26%)
CMYKcmyk(36.4%, 27.3%, 0%, 74.1%)
CIE-LABlab(20.04, 2.57, -12.12)
CIE-LCHlch(20.04, 12.39, 281.99°)
OKLaboklab(31.16% 0.0001 -0.0335)
OKLCHoklch(31.16% 0.034 270.1)
XYZxyz(2.9949, 2.9994, 5.5743)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3042 #423C2A
analogous
#2A3C42 #2A3042 #302A42
triadic
#2A3042 #422A30 #30422A
tetradic
#2A3042 #422A3C #423C2A #2A4230
square
#2A3042 #422A3C #423C2A #2A4230
split-complementary
#2A3042 #42302A #3C422A
monochromatic
#0C0E13 #12151D #2A3042 #424B67 #5A668D

Accessibility & contrast

On white

13.13
#2A3042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3042
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3042#FFFFFF#000000##FFFFFF
##2A30421.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3143
Deuteranopia (green-blind)
#282F42
Tritanopia (blue-blind)
#233436
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a3042;
/* rgb */ color: rgb(42, 48, 66);
/* oklch */ color: oklch(31.2% 0.034 270.1);
Tailwind
colors: {
  custom: {
    50: '#646876',
    500: '#2a3042',
    950: '#000000',
  },
}
SCSS
$custom: #2a3042;
$custom-light: #646876;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3042",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 66
  },
  "hsl": {
    "h": 225,
    "s": 22.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31159,
    "c": 0.03352,
    "h": 270.1
  },
  "luminance": 0.02999
}

Semantic roles & 50–950 ramp

primary
#2A3042
secondary
#736C54
accent
#A969BF
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#050608
muted
#7A7A7B

Preview Lab

Preview with #2A3042

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

Preview Lab → · Contrast checker → · Palette generator →

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