#2B40AD#2B40AD

#2B40AD is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.175 H 269.1°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#2B40AD
RGBrgb(43, 64, 173)
HSLhsl(230, 60%, 42%)
HSVhsv(230, 75%, 68%)
CMYKcmyk(75.1%, 63%, 0%, 32.2%)
CIE-LABlab(32.25, 30.94, -60.49)
CIE-LCHlch(32.25, 67.95, 297.09°)
OKLaboklab(42.81% -0.0028 -0.1748)
OKLCHoklch(42.81% 0.175 269.1)
XYZxyz(10.3699, 7.1964, 40.3696)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40AD #AD982B
analogous
#2B81AD #2B40AD #572BAD
triadic
#2B40AD #AD2B40 #40AD2B
tetradic
#2B40AD #AD2B81 #AD982B #2BAD57
square
#2B40AD #AD2B81 #AD982B #2BAD57
split-complementary
#2B40AD #AD572B #81AD2B
monochromatic
#131C4B #1F2E7C #2B40AD #455BD1 #7686DD

Accessibility & contrast

On white

8.61
#2B40AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2B40AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40AD
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40AD#FFFFFF#000000##FFFFFF
##2B40AD1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b40ad;
/* rgb */ color: rgb(43, 64, 173);
/* oklch */ color: oklch(42.8% 0.175 269.1);
Tailwind
colors: {
  custom: {
    50: '#7874c6',
    500: '#2b40ad',
    950: '#000000',
  },
}
SCSS
$custom: #2b40ad;
$custom-light: #7874c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40ad",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 230.308,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42805,
    "c": 0.17485,
    "h": 269.1
  },
  "luminance": 0.07198
}

Semantic roles & 50–950 ramp

primary
#2B40AD
secondary
#C4B76F
accent
#CA44E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B40AD

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

Preview Lab → · Contrast checker → · Palette generator →

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