#2B418C#2B418C

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

Color values

HEX#2B418C
RGBrgb(43, 65, 140)
HSLhsl(226, 53%, 36%)
HSVhsv(226, 69%, 55%)
CMYKcmyk(69.3%, 53.6%, 0%, 45.1%)
CIE-LABlab(29.88, 17.83, -44.34)
CIE-LCHlch(29.88, 47.79, 291.91°)
OKLaboklab(40.21% -0.0046 -0.1273)
OKLCHoklch(40.21% 0.127 267.9)
XYZxyz(7.6186, 6.1869, 25.5986)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B418C #8C762B
analogous
#2B718C #2B418C #452B8C
triadic
#2B418C #8C2B41 #418C2B
tetradic
#2B418C #8C2B71 #8C762B #2B8C45
square
#2B418C #8C2B71 #8C762B #2B8C45
split-complementary
#2B418C #8C452B #718C2B
monochromatic
#0E162E #1D2B5D #2B418C #3957BB #627BCF

Accessibility & contrast

On white

9.39
#2B418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B418C
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B418C#FFFFFF#000000##FFFFFF
##2B418C1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b418c;
/* rgb */ color: rgb(43, 65, 140);
/* oklch */ color: oklch(40.2% 0.127 267.9);
Tailwind
colors: {
  custom: {
    50: '#7075ae',
    500: '#2b418c',
    950: '#000000',
  },
}
SCSS
$custom: #2b418c;
$custom-light: #7075ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2b418c",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 226.392,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40207,
    "c": 0.12743,
    "h": 267.9
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#2B418C
secondary
#B5A15E
accent
#BC4BDC
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B418C

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

Preview Lab → · Contrast checker → · Palette generator →

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