#2B40A6#2B40A6

#2B40A6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.165 H 269.1°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2B40A6
RGBrgb(43, 64, 166)
HSLhsl(230, 59%, 41%)
HSVhsv(230, 74%, 65%)
CMYKcmyk(74.1%, 61.4%, 0%, 34.9%)
CIE-LABlab(31.65, 28.34, -57.27)
CIE-LCHlch(31.65, 63.90, 296.33°)
OKLaboklab(42.18% -0.0027 -0.1654)
OKLCHoklch(42.18% 0.165 269.1)
XYZxyz(9.7102, 6.9325, 36.8954)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40A6 #A6912B
analogous
#2B7DA6 #2B40A6 #532BA6
triadic
#2B40A6 #A62B40 #40A62B
tetradic
#2B40A6 #A62B7D #A6912B #2BA653
square
#2B40A6 #A62B7D #A6912B #2BA653
split-complementary
#2B40A6 #A6532B #7DA62B
monochromatic
#121B45 #1E2D75 #2B40A6 #4159CE #7183DA

Accessibility & contrast

On white

8.80
#2B40A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2B40A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40A6
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40A6#FFFFFF#000000##FFFFFF
##2B40A61.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2b40a6;
/* rgb */ color: rgb(43, 64, 166);
/* oklch */ color: oklch(42.2% 0.165 269.1);
Tailwind
colors: {
  custom: {
    50: '#7674c1',
    500: '#2b40a6',
    950: '#000000',
  },
}
SCSS
$custom: #2b40a6;
$custom-light: #7674c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40a6",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 229.756,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42178,
    "c": 0.16541,
    "h": 269.1
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

primary
#2B40A6
secondary
#C1B36B
accent
#C746E2
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2B40A6

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

Preview Lab → · Contrast checker → · Palette generator →

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