#2B40A1#2B40A1

#2B40A1 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.159 H 269.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2B40A1
RGBrgb(43, 64, 161)
HSLhsl(229, 58%, 40%)
HSVhsv(229, 73%, 63%)
CMYKcmyk(73.3%, 60.2%, 0%, 36.9%)
CIE-LABlab(31.24, 26.47, -54.94)
CIE-LCHlch(31.24, 60.98, 295.72°)
OKLaboklab(41.74% -0.0027 -0.1585)
OKLCHoklch(41.74% 0.159 269)
XYZxyz(9.2605, 6.7526, 34.5266)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40A1 #A18C2B
analogous
#2B7BA1 #2B40A1 #512BA1
triadic
#2B40A1 #A12B40 #40A12B
tetradic
#2B40A1 #A12B7B #A18C2B #2BA151
square
#2B40A1 #A12B7B #A18C2B #2BA151
split-complementary
#2B40A1 #A1512B #7BA12B
monochromatic
#111A40 #1E2D71 #2B40A1 #3E57CB #6E81D8

Accessibility & contrast

On white

8.93
#2B40A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2B40A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40A1
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40A1#FFFFFF#000000##FFFFFF
##2B40A11.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2b40a1;
/* rgb */ color: rgb(43, 64, 161);
/* oklch */ color: oklch(41.7% 0.159 269.0);
Tailwind
colors: {
  custom: {
    50: '#7574be',
    500: '#2b40a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b40a1;
$custom-light: #7574be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40a1",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 229.322,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.41739,
    "c": 0.15857,
    "h": 269
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#2B40A1
secondary
#BFB069
accent
#C647E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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