#2B40A3#2B40A3

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

Color values

HEX#2B40A3
RGBrgb(43, 64, 163)
HSLhsl(230, 58%, 40%)
HSVhsv(230, 74%, 64%)
CMYKcmyk(73.6%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.40, 27.22, -55.88)
CIE-LCHlch(31.40, 62.15, 295.97°)
OKLaboklab(41.91% -0.0027 -0.1613)
OKLCHoklch(41.91% 0.161 269)
XYZxyz(9.4382, 6.8237, 35.4629)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40A3 #A38E2B
analogous
#2B7CA3 #2B40A3 #522BA3
triadic
#2B40A3 #A32B40 #40A32B
tetradic
#2B40A3 #A32B7C #A38E2B #2BA352
square
#2B40A3 #A32B7C #A38E2B #2BA352
split-complementary
#2B40A3 #A3522B #7CA32B
monochromatic
#111A42 #1E2D73 #2B40A3 #3F58CC #6F82D9

Accessibility & contrast

On white

8.88
#2B40A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2B40A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40A3
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40A3#FFFFFF#000000##FFFFFF
##2B40A31.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.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: #2b40a3;
/* rgb */ color: rgb(43, 64, 163);
/* oklch */ color: oklch(41.9% 0.161 269.0);
Tailwind
colors: {
  custom: {
    50: '#7674bf',
    500: '#2b40a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b40a3;
$custom-light: #7674bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40a3",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 229.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41914,
    "c": 0.16132,
    "h": 269
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#2B40A3
secondary
#C0B16A
accent
#C646E1
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B40A3

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

Preview Lab → · Contrast checker → · Palette generator →

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