#2A40AA#2A40AA

#2A40AA is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.171 H 268.8°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2A40AA
RGBrgb(42, 64, 170)
HSLhsl(230, 60%, 42%)
HSVhsv(230, 75%, 67%)
CMYKcmyk(75.3%, 62.4%, 0%, 33.3%)
CIE-LABlab(31.94, 29.71, -59.20)
CIE-LCHlch(31.94, 66.24, 296.65°)
OKLaboklab(42.49% -0.0037 -0.1711)
OKLCHoklch(42.49% 0.171 268.8)
XYZxyz(10.0414, 7.0602, 38.8560)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40AA #AA942A
analogous
#2A80AA #2A40AA #542AAA
triadic
#2A40AA #AA2A40 #40AA2A
tetradic
#2A40AA #AA2A80 #AA942A #2AAA54
square
#2A40AA #AA2A80 #AA942A #2AAA54
split-complementary
#2A40AA #AA542A #80AA2A
monochromatic
#121B48 #1E2E79 #2A40AA #415AD0 #7284DC

Accessibility & contrast

On white

8.71
#2A40AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2A40AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40AA
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40AA#FFFFFF#000000##FFFFFF
##2A40AA1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a40aa;
/* rgb */ color: rgb(42, 64, 170);
/* oklch */ color: oklch(42.5% 0.171 268.8);
Tailwind
colors: {
  custom: {
    50: '#7774c4',
    500: '#2a40aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a40aa;
$custom-light: #7774c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40aa",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 229.688,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42485,
    "c": 0.17111,
    "h": 268.8
  },
  "luminance": 0.07061
}

Semantic roles & 50–950 ramp

primary
#2A40AA
secondary
#C3B46C
accent
#C844E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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