#2B40AE#2B40AE

#2B40AE is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.176 H 269.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2B40AE
RGBrgb(43, 64, 174)
HSLhsl(230, 60%, 43%)
HSVhsv(230, 75%, 68%)
CMYKcmyk(75.3%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.34, 31.31, -60.95)
CIE-LCHlch(32.34, 68.52, 297.19°)
OKLaboklab(42.9% -0.0028 -0.1762)
OKLCHoklch(42.9% 0.176 269.1)
XYZxyz(10.4670, 7.2352, 40.8811)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40AE #AE992B
analogous
#2B81AE #2B40AE #582BAE
triadic
#2B40AE #AE2B40 #40AE2B
tetradic
#2B40AE #AE2B81 #AE992B #2BAE58
square
#2B40AE #AE2B81 #AE992B #2BAE58
split-complementary
#2B40AE #AE582B #81AE2B
monochromatic
#131C4C #1F2E7D #2B40AE #455CD1 #7687DD

Accessibility & contrast

On white

8.58
#2B40AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B40AE
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40AE#FFFFFF#000000##FFFFFF
##2B40AE1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b40ae;
/* rgb */ color: rgb(43, 64, 174);
/* oklch */ color: oklch(42.9% 0.176 269.1);
Tailwind
colors: {
  custom: {
    50: '#7874c7',
    500: '#2b40ae',
    950: '#000000',
  },
}
SCSS
$custom: #2b40ae;
$custom-light: #7874c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40ae",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 230.382,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42895,
    "c": 0.17618,
    "h": 269.1
  },
  "luminance": 0.07236
}

Semantic roles & 50–950 ramp

primary
#2B40AE
secondary
#C5B770
accent
#CA44E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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