#2B40B5#2B40B5

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

Color values

HEX#2B40B5
RGBrgb(43, 64, 181)
HSLhsl(231, 62%, 44%)
HSVhsv(231, 76%, 71%)
CMYKcmyk(76.2%, 64.6%, 0%, 29%)
CIE-LABlab(32.95, 33.89, -64.10)
CIE-LCHlch(32.95, 72.50, 297.87°)
OKLaboklab(43.54% -0.0031 -0.1854)
OKLCHoklch(43.54% 0.185 269)
XYZxyz(11.1673, 7.5154, 44.5692)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40B5 #B5A02B
analogous
#2B85B5 #2B40B5 #5B2BB5
triadic
#2B40B5 #B52B40 #40B52B
tetradic
#2B40B5 #B52B85 #B5A02B #2BB55B
square
#2B40B5 #B52B85 #B5A02B #2BB55B
split-complementary
#2B40B5 #B55B2B #85B52B
monochromatic
#141D52 #1F2F84 #2B40B5 #495ED4 #7B8AE0

Accessibility & contrast

On white

8.39
#2B40B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B40B5
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40B5#FFFFFF#000000##FFFFFF
##2B40B51.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b40b5;
/* rgb */ color: rgb(43, 64, 181);
/* oklch */ color: oklch(43.5% 0.185 269.0);
Tailwind
colors: {
  custom: {
    50: '#7a74cc',
    500: '#2b40b5',
    950: '#000000',
  },
}
SCSS
$custom: #2b40b5;
$custom-light: #7a74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40b5",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 230.87,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43538,
    "c": 0.18542,
    "h": 269
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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