#2B40B1#2B40B1

#2B40B1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.180 H 269.1°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2B40B1
RGBrgb(43, 64, 177)
HSLhsl(231, 61%, 43%)
HSVhsv(231, 76%, 69%)
CMYKcmyk(75.7%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.60, 32.42, -62.30)
CIE-LCHlch(32.60, 70.23, 297.49°)
OKLaboklab(43.17% -0.0029 -0.1801)
OKLCHoklch(43.17% 0.18 269.1)
XYZxyz(10.7627, 7.3535, 42.4386)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40B1 #B19C2B
analogous
#2B83B1 #2B40B1 #592BB1
triadic
#2B40B1 #B12B40 #40B12B
tetradic
#2B40B1 #B12B83 #B19C2B #2BB159
square
#2B40B1 #B12B83 #B19C2B #2BB159
split-complementary
#2B40B1 #B1592B #83B12B
monochromatic
#131C4F #1F2E80 #2B40B1 #475DD2 #7888DE

Accessibility & contrast

On white

8.50
#2B40B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2B40B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40B1
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40B1#FFFFFF#000000##FFFFFF
##2B40B11.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b40b1;
/* rgb */ color: rgb(43, 64, 177);
/* oklch */ color: oklch(43.2% 0.180 269.1);
Tailwind
colors: {
  custom: {
    50: '#7974c9',
    500: '#2b40b1',
    950: '#000000',
  },
}
SCSS
$custom: #2b40b1;
$custom-light: #7974c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40b1",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 230.597,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43169,
    "c": 0.18016,
    "h": 269.1
  },
  "luminance": 0.07355
}

Semantic roles & 50–950 ramp

primary
#2B40B1
secondary
#C6B972
accent
#CB44E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2B40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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