#2A2A64#2A2A64

#2A2A64 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.0% C 0.100 H 279.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2A2A64
RGBrgb(42, 42, 100)
HSLhsl(240, 41%, 28%)
HSVhsv(240, 58%, 39%)
CMYKcmyk(58%, 58%, 0%, 60.8%)
CIE-LABlab(20.31, 18.58, -34.41)
CIE-LCHlch(20.31, 39.11, 298.36°)
OKLaboklab(32.05% 0.0159 -0.0985)
OKLCHoklch(32.05% 0.1 279.2)
XYZxyz(4.0823, 3.0680, 12.4312)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A64 #64642A
analogous
#2A4764 #2A2A64 #472A64
triadic
#2A2A64 #642A2A #2A642A
tetradic
#2A2A64 #642A47 #64642A #2A6447
square
#2A2A64 #642A47 #64642A #2A6447
split-complementary
#2A2A64 #64472A #47642A
monochromatic
#090916 #181839 #2A2A64 #3C3C8F #5252B6

Accessibility & contrast

On white

13.01
#2A2A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A2A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A64
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A64#FFFFFF#000000##FFFFFF
##2A2A641.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063366
Deuteranopia (green-blind)
#002F63
Tritanopia (blue-blind)
#0E3742
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a2a64;
/* rgb */ color: rgb(42, 42, 100);
/* oklch */ color: oklch(32.0% 0.100 279.2);
Tailwind
colors: {
  custom: {
    50: '#696391',
    500: '#2a2a64',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a64;
$custom-light: #696391;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a64",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 100
  },
  "hsl": {
    "h": 240,
    "s": 40.845,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32047,
    "c": 0.09975,
    "h": 279.2
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#2A2A64
secondary
#969653
accent
#D157D1
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050D
muted
#7A797D

Preview Lab

Preview with #2A2A64

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

Preview Lab → · Contrast checker → · Palette generator →

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