#2B418B#2B418B

#2B418B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.126 H 267.9°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2B418B
RGBrgb(43, 65, 139)
HSLhsl(226, 53%, 36%)
HSVhsv(226, 69%, 55%)
CMYKcmyk(69.1%, 53.2%, 0%, 45.5%)
CIE-LABlab(29.81, 17.45, -43.84)
CIE-LCHlch(29.81, 47.18, 291.70°)
OKLaboklab(40.13% -0.0047 -0.1259)
OKLCHoklch(40.13% 0.126 267.9)
XYZxyz(7.5452, 6.1575, 25.2120)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B418B #8B752B
analogous
#2B718B #2B418B #452B8B
triadic
#2B418B #8B2B41 #418B2B
tetradic
#2B418B #8B2B71 #8B752B #2B8B45
square
#2B418B #8B2B71 #8B752B #2B8B45
split-complementary
#2B418B #8B452B #718B2B
monochromatic
#0E152E #1D2B5C #2B418B #3957BA #627BCE

Accessibility & contrast

On white

9.41
#2B418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2B418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B418B
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B418B#FFFFFF#000000##FFFFFF
##2B418B1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b418b;
/* rgb */ color: rgb(43, 65, 139);
/* oklch */ color: oklch(40.1% 0.126 267.9);
Tailwind
colors: {
  custom: {
    50: '#7075ad',
    500: '#2b418b',
    950: '#000000',
  },
}
SCSS
$custom: #2b418b;
$custom-light: #7075ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b418b",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 226.25,
    "s": 52.747,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40129,
    "c": 0.12597,
    "h": 267.9
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#2B418B
secondary
#B5A15D
accent
#BB4CDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B418B

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

Preview Lab → · Contrast checker → · Palette generator →

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