#2A2B57#2A2B57

#2A2B57 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.077 H 279.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2A2B57
RGBrgb(42, 43, 87)
HSLhsl(239, 35%, 25%)
HSVhsv(239, 52%, 34%)
CMYKcmyk(51.7%, 50.6%, 0%, 65.9%)
CIE-LABlab(19.67, 13.20, -26.86)
CIE-LCHlch(19.67, 29.93, 296.17°)
OKLaboklab(31.26% 0.0134 -0.0763)
OKLCHoklch(31.26% 0.077 279.9)
XYZxyz(3.5385, 2.9079, 9.3898)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B57 #57562A
analogous
#2A4157 #2A2B57 #3F2A57
triadic
#2A2B57 #572A2B #2B572A
tetradic
#2A2B57 #572A41 #57562A #2A573F
square
#2A2B57 #572A41 #57562A #2A573F
split-complementary
#2A2B57 #573F2A #41572A
monochromatic
#0A0A15 #16172E #2A2B57 #3E3F80 #5254AA

Accessibility & contrast

On white

13.28
#2A2B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A2B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B57
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B57#FFFFFF#000000##FFFFFF
##2A2B571.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193159
Deuteranopia (green-blind)
#152E56
Tritanopia (blue-blind)
#1A343C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a2b57;
/* rgb */ color: rgb(42, 43, 87);
/* oklch */ color: oklch(31.3% 0.077 279.9);
Tailwind
colors: {
  custom: {
    50: '#676487',
    500: '#2a2b57',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b57;
$custom-light: #676487;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b57",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 87
  },
  "hsl": {
    "h": 238.667,
    "s": 34.884,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31265,
    "c": 0.07742,
    "h": 279.9
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#2A2B57
secondary
#898853
accent
#C85DCB
background
#F6F5F8
surface
#EBEAEF
border
#C6C6CA
text
#06050B
muted
#7A797C

Preview Lab

Preview with #2A2B57

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

Preview Lab → · Contrast checker → · Palette generator →

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