#2B40AB#2B40AB

#2B40AB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.172 H 269.1°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#2B40AB
RGBrgb(43, 64, 171)
HSLhsl(230, 60%, 42%)
HSVhsv(230, 75%, 67%)
CMYKcmyk(74.9%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.08, 30.20, -59.58)
CIE-LCHlch(32.08, 66.79, 296.88°)
OKLaboklab(42.62% -0.0028 -0.1721)
OKLCHoklch(42.62% 0.172 269.1)
XYZxyz(10.1778, 7.1196, 39.3580)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40AB #AB962B
analogous
#2B80AB #2B40AB #562BAB
triadic
#2B40AB #AB2B40 #40AB2B
tetradic
#2B40AB #AB2B80 #AB962B #2BAB56
square
#2B40AB #AB2B80 #AB962B #2BAB56
split-complementary
#2B40AB #AB562B #80AB2B
monochromatic
#121B49 #1F2E7A #2B40AB #435AD0 #7485DC

Accessibility & contrast

On white

8.66
#2B40AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2B40AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40AB
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40AB#FFFFFF#000000##FFFFFF
##2B40AB1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2b40ab;
/* rgb */ color: rgb(43, 64, 171);
/* oklch */ color: oklch(42.6% 0.172 269.1);
Tailwind
colors: {
  custom: {
    50: '#7874c5',
    500: '#2b40ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b40ab;
$custom-light: #7874c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40ab",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 230.156,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42624,
    "c": 0.17217,
    "h": 269.1
  },
  "luminance": 0.07121
}

Semantic roles & 50–950 ramp

primary
#2B40AB
secondary
#C4B66E
accent
#C945E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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