#2B418D#2B418D

#2B418D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.129 H 268.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2B418D
RGBrgb(43, 65, 141)
HSLhsl(227, 53%, 36%)
HSVhsv(227, 70%, 55%)
CMYKcmyk(69.5%, 53.9%, 0%, 44.7%)
CIE-LABlab(29.95, 18.21, -44.83)
CIE-LCHlch(29.95, 48.39, 292.10°)
OKLaboklab(40.28% -0.0045 -0.1288)
OKLCHoklch(40.28% 0.129 268)
XYZxyz(7.6926, 6.2165, 25.9886)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B418D #8D772B
analogous
#2B728D #2B418D #462B8D
triadic
#2B418D #8D2B41 #418D2B
tetradic
#2B418D #8D2B72 #8D772B #2B8D46
square
#2B418D #8D2B72 #8D772B #2B8D46
split-complementary
#2B418D #8D462B #728D2B
monochromatic
#0E162F #1D2B5E #2B418D #3957BC #637BCF

Accessibility & contrast

On white

9.36
#2B418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2B418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B418D
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B418D#FFFFFF#000000##FFFFFF
##2B418D1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b418d;
/* rgb */ color: rgb(43, 65, 141);
/* oklch */ color: oklch(40.3% 0.129 268.0);
Tailwind
colors: {
  custom: {
    50: '#7175af',
    500: '#2b418d',
    950: '#000000',
  },
}
SCSS
$custom: #2b418d;
$custom-light: #7175af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b418d",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 226.531,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40285,
    "c": 0.1289,
    "h": 268
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#2B418D
secondary
#B6A25E
accent
#BC4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B418D

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

Preview Lab → · Contrast checker → · Palette generator →

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