#2A40A3#2A40A3

#2A40A3 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.162 H 268.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2A40A3
RGBrgb(42, 64, 163)
HSLhsl(229, 59%, 40%)
HSVhsv(229, 74%, 64%)
CMYKcmyk(74.2%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.35, 27.09, -55.96)
CIE-LCHlch(31.35, 62.17, 295.83°)
OKLaboklab(41.86% -0.0036 -0.1616)
OKLCHoklch(41.86% 0.162 268.7)
XYZxyz(9.3968, 6.8024, 35.4610)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40A3 #A38D2A
analogous
#2A7CA3 #2A40A3 #512AA3
triadic
#2A40A3 #A32A40 #40A32A
tetradic
#2A40A3 #A32A7C #A38D2A #2AA351
square
#2A40A3 #A32A7C #A38D2A #2AA351
split-complementary
#2A40A3 #A3512A #7CA32A
monochromatic
#111A42 #1D2D72 #2A40A3 #3D57CD #6E81DA

Accessibility & contrast

On white

8.90
#2A40A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2A40A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40A3
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40A3#FFFFFF#000000##FFFFFF
##2A40A31.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a40a3;
/* rgb */ color: rgb(42, 64, 163);
/* oklch */ color: oklch(41.9% 0.162 268.7);
Tailwind
colors: {
  custom: {
    50: '#7574bf',
    500: '#2a40a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a40a3;
$custom-light: #7574bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40a3",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 229.091,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41864,
    "c": 0.1616,
    "h": 268.7
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#2A40A3
secondary
#C0B068
accent
#C646E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2A40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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