#2A2A70#2A2A70

#2A2A70 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.1% C 0.118 H 277.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2A2A70
RGBrgb(42, 42, 112)
HSLhsl(240, 45%, 30%)
HSVhsv(240, 63%, 44%)
CMYKcmyk(62.5%, 62.5%, 0%, 56.1%)
CIE-LABlab(21.27, 22.94, -40.65)
CIE-LCHlch(21.27, 46.68, 299.44°)
OKLaboklab(33.06% 0.016 -0.1168)
OKLCHoklch(33.06% 0.118 277.8)
XYZxyz(4.7065, 3.3177, 15.7185)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A70 #70702A
analogous
#2A4D70 #2A2A70 #4D2A70
triadic
#2A2A70 #702A2A #2A702A
tetradic
#2A2A70 #702A4D #70702A #2A704D
square
#2A2A70 #702A4D #70702A #2A704D
split-complementary
#2A2A70 #704D2A #4D702A
monochromatic
#090917 #191943 #2A2A70 #3B3B9D #5555BF

Accessibility & contrast

On white

12.62
#2A2A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2A2A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A70
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A70#FFFFFF#000000##FFFFFF
##2A2A701.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a2a70;
/* rgb */ color: rgb(42, 42, 112);
/* oklch */ color: oklch(33.1% 0.118 277.8);
Tailwind
colors: {
  custom: {
    50: '#6c639a',
    500: '#2a2a70',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a70;
$custom-light: #6c639a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a70",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 240,
    "s": 45.455,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33063,
    "c": 0.11791,
    "h": 277.8
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#2A2A70
secondary
#A2A254
accent
#D553D5
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #2A2A70

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

Preview Lab → · Contrast checker → · Palette generator →

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