#2B40B7#2B40B7

#2B40B7 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.188 H 269.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#2B40B7
RGBrgb(43, 64, 183)
HSLhsl(231, 62%, 44%)
HSVhsv(231, 77%, 72%)
CMYKcmyk(76.5%, 65%, 0%, 28.2%)
CIE-LABlab(33.13, 34.62, -64.99)
CIE-LCHlch(33.13, 73.63, 298.04°)
OKLaboklab(43.72% -0.0032 -0.188)
OKLCHoklch(43.72% 0.188 269)
XYZxyz(11.3740, 7.5980, 45.6577)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40B7 #B7A22B
analogous
#2B86B7 #2B40B7 #5C2BB7
triadic
#2B40B7 #B72B40 #40B72B
tetradic
#2B40B7 #B72B86 #B7A22B #2BB75C
square
#2B40B7 #B72B86 #B7A22B #2BB75C
split-complementary
#2B40B7 #B75C2B #86B72B
monochromatic
#141D54 #1F2F85 #2B40B7 #4B5FD5 #7C8BE0

Accessibility & contrast

On white

8.33
#2B40B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2B40B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40B7
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40B7#FFFFFF#000000##FFFFFF
##2B40B71.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0047B5
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b40b7;
/* rgb */ color: rgb(43, 64, 183);
/* oklch */ color: oklch(43.7% 0.188 269.0);
Tailwind
colors: {
  custom: {
    50: '#7b75ce',
    500: '#2b40b7',
    950: '#000000',
  },
}
SCSS
$custom: #2b40b7;
$custom-light: #7b75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40b7",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 231,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43724,
    "c": 0.18803,
    "h": 269
  },
  "luminance": 0.07599
}

Semantic roles & 50–950 ramp

primary
#2B40B7
secondary
#C9BC75
accent
#CD43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2B40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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