#2B40AC#2B40AC

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

Color values

HEX#2B40AC
RGBrgb(43, 64, 172)
HSLhsl(230, 60%, 42%)
HSVhsv(230, 75%, 67%)
CMYKcmyk(75%, 62.8%, 0%, 32.5%)
CIE-LABlab(32.16, 30.57, -60.03)
CIE-LCHlch(32.16, 67.37, 296.99°)
OKLaboklab(42.71% -0.0028 -0.1735)
OKLCHoklch(42.71% 0.174 269.1)
XYZxyz(10.2735, 7.1578, 39.8619)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40AC #AC972B
analogous
#2B80AC #2B40AC #572BAC
triadic
#2B40AC #AC2B40 #40AC2B
tetradic
#2B40AC #AC2B80 #AC972B #2BAC57
square
#2B40AC #AC2B80 #AC972B #2BAC57
split-complementary
#2B40AC #AC572B #80AC2B
monochromatic
#131C4A #1F2E7B #2B40AC #445BD0 #7586DC

Accessibility & contrast

On white

8.64
#2B40AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2B40AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40AC
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40AC#FFFFFF#000000##FFFFFF
##2B40AC1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b40ac;
/* rgb */ color: rgb(43, 64, 172);
/* oklch */ color: oklch(42.7% 0.174 269.1);
Tailwind
colors: {
  custom: {
    50: '#7874c6',
    500: '#2b40ac',
    950: '#000000',
  },
}
SCSS
$custom: #2b40ac;
$custom-light: #7874c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40ac",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 230.233,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42714,
    "c": 0.17351,
    "h": 269.1
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#2B40AC
secondary
#C4B66F
accent
#C945E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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