#2A2A8D#2A2A8D

#2A2A8D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.159 H 274.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2A2A8D
RGBrgb(42, 42, 141)
HSLhsl(240, 54%, 36%)
HSVhsv(240, 70%, 55%)
CMYKcmyk(70.2%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.90, 33.40, -54.69)
CIE-LCHlch(23.90, 64.09, 301.41°)
OKLaboklab(35.79% 0.0134 -0.158)
OKLCHoklch(35.79% 0.159 274.9)
XYZxyz(6.5889, 4.0706, 25.6326)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A8D #8D8D2A
analogous
#2A5B8D #2A2A8D #5B2A8D
triadic
#2A2A8D #8D2A2A #2A8D2A
tetradic
#2A2A8D #8D2A5B #8D8D2A #2A8D5B
square
#2A2A8D #8D2A5B #8D8D2A #2A8D5B
split-complementary
#2A2A8D #8D5B2A #5B8D2A
monochromatic
#0E0E2F #1C1C5E #2A2A8D #3838BC #6161D0

Accessibility & contrast

On white

11.58
#2A2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2A2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A8D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A8D#FFFFFF#000000##FFFFFF
##2A2A8D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2a8d;
/* rgb */ color: rgb(42, 42, 141);
/* oklch */ color: oklch(35.8% 0.159 274.9);
Tailwind
colors: {
  custom: {
    50: '#7264af',
    500: '#2a2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a8d;
$custom-light: #7264af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a8d",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35794,
    "c": 0.15857,
    "h": 274.9
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#2A2A8D
secondary
#B6B65D
accent
#DD4ADD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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