#2A40A0#2A40A0

#2A40A0 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.157 H 268.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#2A40A0
RGBrgb(42, 64, 160)
HSLhsl(229, 58%, 40%)
HSVhsv(229, 74%, 63%)
CMYKcmyk(73.8%, 60%, 0%, 37.3%)
CIE-LABlab(31.10, 25.96, -54.55)
CIE-LCHlch(31.10, 60.42, 295.45°)
OKLaboklab(41.6% -0.0037 -0.1574)
OKLCHoklch(41.6% 0.157 268.7)
XYZxyz(9.1312, 6.6961, 34.0621)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40A0 #A08A2A
analogous
#2A7BA0 #2A40A0 #4F2AA0
triadic
#2A40A0 #A02A40 #40A02A
tetradic
#2A40A0 #A02A7B #A08A2A #2AA04F
square
#2A40A0 #A02A7B #A08A2A #2AA04F
split-complementary
#2A40A0 #A04F2A #7BA02A
monochromatic
#11193F #1D2D70 #2A40A0 #3C56CC #6C80D8

Accessibility & contrast

On white

8.98
#2A40A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A40A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40A0
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40A0#FFFFFF#000000##FFFFFF
##2A40A01.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a40a0;
/* rgb */ color: rgb(42, 64, 160);
/* oklch */ color: oklch(41.6% 0.157 268.7);
Tailwind
colors: {
  custom: {
    50: '#7574bd',
    500: '#2a40a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a40a0;
$custom-light: #7574bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40a0",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 228.814,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41602,
    "c": 0.15747,
    "h": 268.7
  },
  "luminance": 0.06697
}

Semantic roles & 50–950 ramp

primary
#2A40A0
secondary
#BFAF67
accent
#C546E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2A40A0

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

Preview Lab → · Contrast checker → · Palette generator →

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