#2A2A8B#2A2A8B

#2A2A8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.156 H 275.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2A2A8B
RGBrgb(42, 42, 139)
HSLhsl(240, 54%, 35%)
HSVhsv(240, 70%, 55%)
CMYKcmyk(69.8%, 69.8%, 0%, 45.5%)
CIE-LABlab(23.71, 32.69, -53.77)
CIE-LCHlch(23.71, 62.92, 301.30°)
OKLaboklab(35.6% 0.0137 -0.1553)
OKLCHoklch(35.6% 0.156 275)
XYZxyz(6.4415, 4.0117, 24.8560)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A8B #8B8B2A
analogous
#2A5A8B #2A2A8B #5A2A8B
triadic
#2A2A8B #8B2A2A #2A8B2A
tetradic
#2A2A8B #8B2A5A #8B8B2A #2A8B5A
square
#2A2A8B #8B2A5A #8B8B2A #2A8B5A
split-complementary
#2A2A8B #8B5A2A #5A8B2A
monochromatic
#0E0E2D #1C1C5C #2A2A8B #3838BA #6060CF

Accessibility & contrast

On white

11.65
#2A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2A2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A8B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A8B#FFFFFF#000000##FFFFFF
##2A2A8B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2a8b;
/* rgb */ color: rgb(42, 42, 139);
/* oklch */ color: oklch(35.6% 0.156 275.0);
Tailwind
colors: {
  custom: {
    50: '#7264ae',
    500: '#2a2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a8b;
$custom-light: #7264ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a8b",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35595,
    "c": 0.1559,
    "h": 275
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#2A2A8B
secondary
#B5B55C
accent
#DD4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2A2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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