#2B40A4#2B40A4

#2B40A4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.163 H 269.1°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2B40A4
RGBrgb(43, 64, 164)
HSLhsl(230, 58%, 41%)
HSVhsv(230, 74%, 64%)
CMYKcmyk(73.8%, 61%, 0%, 35.7%)
CIE-LABlab(31.49, 27.59, -56.34)
CIE-LCHlch(31.49, 62.74, 296.09°)
OKLaboklab(42% -0.0027 -0.1627)
OKLCHoklch(42% 0.163 269.1)
XYZxyz(9.5282, 6.8597, 35.9367)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40A4 #A48F2B
analogous
#2B7CA4 #2B40A4 #532BA4
triadic
#2B40A4 #A42B40 #40A42B
tetradic
#2B40A4 #A42B7C #A48F2B #2BA453
square
#2B40A4 #A42B7C #A48F2B #2BA453
split-complementary
#2B40A4 #A4532B #7CA42B
monochromatic
#121A43 #1E2D74 #2B40A4 #3F58CD #7082D9

Accessibility & contrast

On white

8.85
#2B40A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B40A4
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40A4#FFFFFF#000000##FFFFFF
##2B40A41.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b40a4;
/* rgb */ color: rgb(43, 64, 164);
/* oklch */ color: oklch(42.0% 0.163 269.1);
Tailwind
colors: {
  custom: {
    50: '#7674c0',
    500: '#2b40a4',
    950: '#000000',
  },
}
SCSS
$custom: #2b40a4;
$custom-light: #7674c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40a4",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 229.587,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42001,
    "c": 0.16269,
    "h": 269.1
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#2B40A4
secondary
#C1B26A
accent
#C746E2
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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