#2B40B3#2B40B3

#2B40B3 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.183 H 269.1°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2B40B3
RGBrgb(43, 64, 179)
HSLhsl(231, 61%, 44%)
HSVhsv(231, 76%, 70%)
CMYKcmyk(76%, 64.2%, 0%, 29.8%)
CIE-LABlab(32.77, 33.16, -63.20)
CIE-LCHlch(32.77, 71.37, 297.68°)
OKLaboklab(43.35% -0.003 -0.1828)
OKLCHoklch(43.35% 0.183 269.1)
XYZxyz(10.9635, 7.4339, 43.4962)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B40B3 #B39E2B
analogous
#2B84B3 #2B40B3 #5A2BB3
triadic
#2B40B3 #B32B40 #40B32B
tetradic
#2B40B3 #B32B84 #B39E2B #2BB35A
square
#2B40B3 #B32B84 #B39E2B #2BB35A
split-complementary
#2B40B3 #B35A2B #84B32B
monochromatic
#131D50 #1F2E82 #2B40B3 #485ED3 #7989DF

Accessibility & contrast

On white

8.44
#2B40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2B40B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B40B3
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B40B3#FFFFFF#000000##FFFFFF
##2B40B31.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2b40b3;
/* rgb */ color: rgb(43, 64, 179);
/* oklch */ color: oklch(43.4% 0.183 269.1);
Tailwind
colors: {
  custom: {
    50: '#7a74cb',
    500: '#2b40b3',
    950: '#000000',
  },
}
SCSS
$custom: #2b40b3;
$custom-light: #7a74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b40b3",
  "rgb": {
    "r": 43,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 230.735,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43353,
    "c": 0.1828,
    "h": 269.1
  },
  "luminance": 0.07435
}

Semantic roles & 50–950 ramp

primary
#2B40B3
secondary
#C7BA73
accent
#CC43E4
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2B40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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