#2A40AF#2A40AF

#2A40AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.178 H 268.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2A40AF
RGBrgb(42, 64, 175)
HSLhsl(230, 61%, 43%)
HSVhsv(230, 76%, 69%)
CMYKcmyk(76%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.38, 31.57, -61.48)
CIE-LCHlch(32.38, 69.11, 297.18°)
OKLaboklab(42.94% -0.0038 -0.1777)
OKLCHoklch(42.94% 0.178 268.8)
XYZxyz(10.5234, 7.2530, 41.3945)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40AF #AF992A
analogous
#2A83AF #2A40AF #562AAF
triadic
#2A40AF #AF2A40 #40AF2A
tetradic
#2A40AF #AF2A83 #AF992A #2AAF56
square
#2A40AF #AF2A83 #AF992A #2AAF56
split-complementary
#2A40AF #AF562A #83AF2A
monochromatic
#121C4C #1E2E7E #2A40AF #445CD2 #7587DE

Accessibility & contrast

On white

8.57
#2A40AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2A40AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40AF
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40AF#FFFFFF#000000##FFFFFF
##2A40AF1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a40af;
/* rgb */ color: rgb(42, 64, 175);
/* oklch */ color: oklch(42.9% 0.178 268.8);
Tailwind
colors: {
  custom: {
    50: '#7874c8',
    500: '#2a40af',
    950: '#000000',
  },
}
SCSS
$custom: #2a40af;
$custom-light: #7874c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40af",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 230.075,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42938,
    "c": 0.17778,
    "h": 268.8
  },
  "luminance": 0.07254
}

Semantic roles & 50–950 ramp

primary
#2A40AF
secondary
#C6B76F
accent
#CA43E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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