#2B40B4#2B40B4

#2B40B4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.184 H 269.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2B40B4
RGBrgb(43, 64, 180)
HSLhsl(231, 61%, 44%)
HSVhsv(231, 76%, 71%)
CMYKcmyk(76.1%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.86, 33.52, -63.65)
CIE-LCHlch(32.86, 71.94, 297.77°)
OKLaboklab(43.45% -0.0031 -0.1841)
OKLCHoklch(43.45% 0.184 269)
XYZxyz(11.0650, 7.4745, 44.0307)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40B4 #B49F2B
analogous
#2B84B4 #2B40B4 #5A2BB4
triadic
#2B40B4 #B42B40 #40B42B
tetradic
#2B40B4 #B42B84 #B49F2B #2BB45A
square
#2B40B4 #B42B84 #B49F2B #2BB45A
split-complementary
#2B40B4 #B45A2B #84B42B
monochromatic
#131D51 #1F2E83 #2B40B4 #495ED3 #7A8ADF

Accessibility & contrast

On white

8.42
#2B40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2B40B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40B4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40B4#FFFFFF#000000##FFFFFF
##2B40B41.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b40b4;
/* rgb */ color: rgb(43, 64, 180);
/* oklch */ color: oklch(43.4% 0.184 269.0);
Tailwind
colors: {
  custom: {
    50: '#7a74cb',
    500: '#2b40b4',
    950: '#000000',
  },
}
SCSS
$custom: #2b40b4;
$custom-light: #7a74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40b4",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 230.803,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43446,
    "c": 0.18412,
    "h": 269
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#2B40B4
secondary
#C7BB73
accent
#CC43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2B40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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