#2A2A66#2A2A66

#2A2A66 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.2% C 0.103 H 278.9°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2A2A66
RGBrgb(42, 42, 102)
HSLhsl(240, 42%, 28%)
HSVhsv(240, 59%, 40%)
CMYKcmyk(58.8%, 58.8%, 0%, 60%)
CIE-LABlab(20.47, 19.30, -35.47)
CIE-LCHlch(20.47, 40.38, 298.55°)
OKLaboklab(32.21% 0.016 -0.1016)
OKLCHoklch(32.21% 0.103 278.9)
XYZxyz(4.1803, 3.1072, 12.9473)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A66 #66662A
analogous
#2A4866 #2A2A66 #482A66
triadic
#2A2A66 #662A2A #2A662A
tetradic
#2A2A66 #662A48 #66662A #2A6648
square
#2A2A66 #662A48 #66662A #2A6648
split-complementary
#2A2A66 #66482A #48662A
monochromatic
#090916 #18183B #2A2A66 #3C3C91 #5252B8

Accessibility & contrast

On white

12.95
#2A2A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A2A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A66
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A66#FFFFFF#000000##FFFFFF
##2A2A661.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023468
Deuteranopia (green-blind)
#002F65
Tritanopia (blue-blind)
#0C3843
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a2a66;
/* rgb */ color: rgb(42, 42, 102);
/* oklch */ color: oklch(32.2% 0.103 278.9);
Tailwind
colors: {
  custom: {
    50: '#6a6392',
    500: '#2a2a66',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a66;
$custom-light: #6a6392;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a66",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 102
  },
  "hsl": {
    "h": 240,
    "s": 41.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32211,
    "c": 0.10284,
    "h": 278.9
  },
  "luminance": 0.03107
}

Semantic roles & 50–950 ramp

primary
#2A2A66
secondary
#989854
accent
#D156D1
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2A2A66

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

Preview Lab → · Contrast checker → · Palette generator →

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