#2A273E#2A273E

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

Color values

HEX#2A273E
RGBrgb(42, 39, 62)
HSLhsl(248, 23%, 20%)
HSVhsv(248, 37%, 24%)
CMYKcmyk(32.3%, 37.1%, 0%, 75.7%)
CIE-LABlab(16.95, 7.67, -14.16)
CIE-LCHlch(16.95, 16.11, 298.43°)
OKLaboklab(28.7% 0.0139 -0.0393)
OKLCHoklch(28.7% 0.042 289.5)
XYZxyz(2.5496, 2.2910, 4.8644)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A273E #3B3E27
analogous
#27303E #2A273E #36273E
triadic
#2A273E #3E2A27 #273E2A
tetradic
#2A273E #3E2730 #3B3E27 #273E36
square
#2A273E #3E2730 #3B3E27 #273E36
split-complementary
#2A273E #3E3627 #303E27
monochromatic
#0D0C13 #110F18 #2A273E #433F64 #5D5689

Accessibility & contrast

On white

14.40
#2A273E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A273E
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A273E#FFFFFF#000000##FFFFFF
##2A273E1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212A3F
Deuteranopia (green-blind)
#21293D
Tritanopia (blue-blind)
#252B2F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a273e;
/* rgb */ color: rgb(42, 39, 62);
/* oklch */ color: oklch(28.7% 0.042 289.5);
Tailwind
colors: {
  custom: {
    50: '#646173',
    500: '#2a273e',
    950: '#000000',
  },
}
SCSS
$custom: #2a273e;
$custom-light: #646173;
$custom-dark: #000000;
JSON
{
  "hex": "#2a273e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 62
  },
  "hsl": {
    "h": 247.826,
    "s": 22.772,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28697,
    "c": 0.04172,
    "h": 289.5
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#2A273E
secondary
#6C7051
accent
#BF69B4
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050508
muted
#7A797B

Preview Lab

Preview with #2A273E

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

Preview Lab → · Contrast checker → · Palette generator →

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