#2A2A51#2A2A51

#2A2A51 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.069 H 281.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2A51
RGBrgb(42, 42, 81)
HSLhsl(240, 32%, 24%)
HSVhsv(240, 48%, 32%)
CMYKcmyk(48.1%, 48.1%, 0%, 68.2%)
CIE-LABlab(18.98, 11.80, -23.94)
CIE-LCHlch(18.98, 26.69, 296.24°)
OKLaboklab(30.61% 0.0138 -0.0677)
OKLCHoklch(30.61% 0.069 281.5)
XYZxyz(3.2676, 2.7421, 8.1401)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A51 #51512A
analogous
#2A3E51 #2A2A51 #3E2A51
triadic
#2A2A51 #512A2A #2A512A
tetradic
#2A2A51 #512A3E #51512A #2A513E
square
#2A2A51 #512A3E #51512A #2A513E
split-complementary
#2A2A51 #513E2A #3E512A
monochromatic
#0A0A14 #151529 #2A2A51 #3F3F79 #5454A2

Accessibility & contrast

On white

13.56
#2A2A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A2A51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A51
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A51#FFFFFF#000000##FFFFFF
##2A2A511.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3052
Deuteranopia (green-blind)
#192D50
Tritanopia (blue-blind)
#1D3239
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a2a51;
/* rgb */ color: rgb(42, 42, 81);
/* oklch */ color: oklch(30.6% 0.069 281.5);
Tailwind
colors: {
  custom: {
    50: '#666382',
    500: '#2a2a51',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a51;
$custom-light: #666382;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a51",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 81
  },
  "hsl": {
    "h": 240,
    "s": 31.707,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30613,
    "c": 0.06911,
    "h": 281.5
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#2A2A51
secondary
#838354
accent
#C860C8
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2A2A51

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

Preview Lab → · Contrast checker → · Palette generator →

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