#2A40B5#2A40B5

#2A40B5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.186 H 268.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#2A40B5
RGBrgb(42, 64, 181)
HSLhsl(231, 62%, 44%)
HSVhsv(231, 77%, 71%)
CMYKcmyk(76.8%, 64.6%, 0%, 29%)
CIE-LABlab(32.91, 33.79, -64.18)
CIE-LCHlch(32.91, 72.53, 297.77°)
OKLaboklab(43.49% -0.004 -0.1856)
OKLCHoklch(43.49% 0.186 268.8)
XYZxyz(11.1259, 7.4940, 44.5672)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40B5 #B59F2A
analogous
#2A85B5 #2A40B5 #592AB5
triadic
#2A40B5 #B52A40 #40B52A
tetradic
#2A40B5 #B52A85 #B59F2A #2AB559
square
#2A40B5 #B52A85 #B59F2A #2AB559
split-complementary
#2A40B5 #B5592A #85B52A
monochromatic
#131D52 #1E2E83 #2A40B5 #485ED4 #798AE0

Accessibility & contrast

On white

8.40
#2A40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2A40B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40B5
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40B5#FFFFFF#000000##FFFFFF
##2A40B51.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a40b5;
/* rgb */ color: rgb(42, 64, 181);
/* oklch */ color: oklch(43.5% 0.186 268.8);
Tailwind
colors: {
  custom: {
    50: '#7a74cc',
    500: '#2a40b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a40b5;
$custom-light: #7a74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40b5",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 230.504,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43491,
    "c": 0.18568,
    "h": 268.8
  },
  "luminance": 0.07495
}

Semantic roles & 50–950 ramp

primary
#2A40B5
secondary
#C8BB73
accent
#CC42E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2A40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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