#2A2E57#2A2E57

#2A2E57 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.9% C 0.073 H 277.2°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2E57
RGBrgb(42, 46, 87)
HSLhsl(235, 35%, 25%)
HSVhsv(235, 52%, 34%)
CMYKcmyk(51.7%, 47.1%, 0%, 65.9%)
CIE-LABlab(20.57, 11.07, -25.42)
CIE-LCHlch(20.57, 27.73, 293.53°)
OKLaboklab(31.95% 0.0092 -0.072)
OKLCHoklch(31.95% 0.073 277.2)
XYZxyz(3.6516, 3.1342, 9.4275)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2E57 #57532A
analogous
#2A4457 #2A2E57 #3C2A57
triadic
#2A2E57 #572A2E #2E572A
tetradic
#2A2E57 #572A44 #57532A #2A573C
square
#2A2E57 #572A44 #57532A #2A573C
split-complementary
#2A2E57 #573C2A #44572A
monochromatic
#0A0B15 #16182E #2A2E57 #3E4480 #525AAA

Accessibility & contrast

On white

12.91
#2A2E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A2E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2E57
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2E57#FFFFFF#000000##FFFFFF
##2A2E571.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3359
Deuteranopia (green-blind)
#1A3056
Tritanopia (blue-blind)
#19373E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a2e57;
/* rgb */ color: rgb(42, 46, 87);
/* oklch */ color: oklch(31.9% 0.073 277.2);
Tailwind
colors: {
  custom: {
    50: '#676686',
    500: '#2a2e57',
    950: '#000000',
  },
}
SCSS
$custom: #2a2e57;
$custom-light: #676686;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2e57",
  "rgb": {
    "r": 42,
    "g": 46,
    "b": 87
  },
  "hsl": {
    "h": 234.667,
    "s": 34.884,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3195,
    "c": 0.07261,
    "h": 277.2
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#2A2E57
secondary
#898553
accent
#C15DCB
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06060B
muted
#7A7A7C

Preview Lab

Preview with #2A2E57

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

Preview Lab → · Contrast checker → · Palette generator →

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