#2A40B1#2A40B1

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

Color values

HEX#2A40B1
RGBrgb(42, 64, 177)
HSLhsl(230, 62%, 43%)
HSVhsv(230, 76%, 69%)
CMYKcmyk(76.3%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.55, 32.31, -62.38)
CIE-LCHlch(32.55, 70.25, 297.38°)
OKLaboklab(43.12% -0.0039 -0.1804)
OKLCHoklch(43.12% 0.18 268.8)
XYZxyz(10.7213, 7.3322, 42.4367)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A40B1 #B19B2A
analogous
#2A84B1 #2A40B1 #572AB1
triadic
#2A40B1 #B12A40 #40B12A
tetradic
#2A40B1 #B12A84 #B19B2A #2AB157
square
#2A40B1 #B12A84 #B19B2A #2AB157
split-complementary
#2A40B1 #B1572A #84B12A
monochromatic
#131C4E #1E2E80 #2A40B1 #455CD3 #7788DF

Accessibility & contrast

On white

8.51
#2A40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A40B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A40B1
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A40B1#FFFFFF#000000##FFFFFF
##2A40B11.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a40b1;
/* rgb */ color: rgb(42, 64, 177);
/* oklch */ color: oklch(43.1% 0.180 268.8);
Tailwind
colors: {
  custom: {
    50: '#7974c9',
    500: '#2a40b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a40b1;
$custom-light: #7974c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a40b1",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 230.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43122,
    "c": 0.18043,
    "h": 268.8
  },
  "luminance": 0.07333
}

Semantic roles & 50–950 ramp

primary
#2A40B1
secondary
#C6B870
accent
#CA43E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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