#2B40B0#2B40B0

#2B40B0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.179 H 269.1°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2B40B0
RGBrgb(43, 64, 176)
HSLhsl(231, 61%, 43%)
HSVhsv(231, 76%, 69%)
CMYKcmyk(75.6%, 63.6%, 0%, 31%)
CIE-LABlab(32.51, 32.05, -61.85)
CIE-LCHlch(32.51, 69.66, 297.39°)
OKLaboklab(43.08% -0.0029 -0.1788)
OKLCHoklch(43.08% 0.179 269.1)
XYZxyz(10.6634, 7.3138, 41.9156)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40B0 #B09B2B
analogous
#2B83B0 #2B40B0 #582BB0
triadic
#2B40B0 #B02B40 #40B02B
tetradic
#2B40B0 #B02B83 #B09B2B #2BB058
square
#2B40B0 #B02B83 #B09B2B #2BB058
split-complementary
#2B40B0 #B0582B #83B02B
monochromatic
#131C4E #1F2E7F #2B40B0 #465CD2 #7888DE

Accessibility & contrast

On white

8.53
#2B40B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2B40B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40B0
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40B0#FFFFFF#000000##FFFFFF
##2B40B01.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b40b0;
/* rgb */ color: rgb(43, 64, 176);
/* oklch */ color: oklch(43.1% 0.179 269.1);
Tailwind
colors: {
  custom: {
    50: '#7974c9',
    500: '#2b40b0',
    950: '#000000',
  },
}
SCSS
$custom: #2b40b0;
$custom-light: #7974c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40b0",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 230.526,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43078,
    "c": 0.17884,
    "h": 269.1
  },
  "luminance": 0.07315
}

Semantic roles & 50–950 ramp

primary
#2B40B0
secondary
#C6B871
accent
#CB44E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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