#2B40B6#2B40B6

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

Color values

HEX#2B40B6
RGBrgb(43, 64, 182)
HSLhsl(231, 62%, 44%)
HSVhsv(231, 76%, 71%)
CMYKcmyk(76.4%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.04, 34.25, -64.54)
CIE-LCHlch(33.04, 73.07, 297.96°)
OKLaboklab(43.63% -0.0032 -0.1867)
OKLCHoklch(43.63% 0.187 269)
XYZxyz(11.2702, 7.5565, 45.1115)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40B6 #B6A12B
analogous
#2B86B6 #2B40B6 #5C2BB6
triadic
#2B40B6 #B62B40 #40B62B
tetradic
#2B40B6 #B62B86 #B6A12B #2BB65C
square
#2B40B6 #B62B86 #B6A12B #2BB65C
split-complementary
#2B40B6 #B65C2B #86B62B
monochromatic
#141D53 #1F2F84 #2B40B6 #4A5FD4 #7B8BE0

Accessibility & contrast

On white

8.36
#2B40B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2B40B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40B6
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40B6#FFFFFF#000000##FFFFFF
##2B40B61.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2b40b6;
/* rgb */ color: rgb(43, 64, 182);
/* oklch */ color: oklch(43.6% 0.187 269.0);
Tailwind
colors: {
  custom: {
    50: '#7a74cd',
    500: '#2b40b6',
    950: '#000000',
  },
}
SCSS
$custom: #2b40b6;
$custom-light: #7a74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40b6",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 230.935,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43631,
    "c": 0.18673,
    "h": 269
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

primary
#2B40B6
secondary
#C8BC75
accent
#CC43E5
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2B40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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