#2A2A4E#2A2A4E

#2A2A4E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.4% C 0.064 H 281.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2A2A4E
RGBrgb(42, 42, 78)
HSLhsl(240, 30%, 24%)
HSVhsv(240, 46%, 31%)
CMYKcmyk(46.2%, 46.2%, 0%, 69.4%)
CIE-LABlab(18.79, 10.77, -22.22)
CIE-LCHlch(18.79, 24.69, 295.86°)
OKLaboklab(30.41% 0.0132 -0.0627)
OKLCHoklch(30.41% 0.064 281.9)
XYZxyz(3.1576, 2.6981, 7.5607)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A4E #4E4E2A
analogous
#2A3C4E #2A2A4E #3C2A4E
triadic
#2A2A4E #4E2A2A #2A4E2A
tetradic
#2A2A4E #4E2A3C #4E4E2A #2A4E3C
square
#2A2A4E #4E2A3C #4E4E2A #2A4E3C
split-complementary
#2A2A4E #4E3C2A #3C4E2A
monochromatic
#0B0B14 #151526 #2A2A4E #3F3F76 #55559E

Accessibility & contrast

On white

13.64
#2A2A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A2A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A4E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A4E#FFFFFF#000000##FFFFFF
##2A2A4E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2F4F
Deuteranopia (green-blind)
#1B2C4D
Tritanopia (blue-blind)
#1F3138
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a2a4e;
/* rgb */ color: rgb(42, 42, 78);
/* oklch */ color: oklch(30.4% 0.064 281.9);
Tailwind
colors: {
  custom: {
    50: '#666380',
    500: '#2a2a4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a4e;
$custom-light: #666380;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a4e",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 240,
    "s": 30,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30409,
    "c": 0.06406,
    "h": 281.9
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#2A2A4E
secondary
#808054
accent
#C662C6
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2A2A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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