#2B418E#2B418E

#2B418E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.130 H 268.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2B418E
RGBrgb(43, 65, 142)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 56%)
CMYKcmyk(69.7%, 54.2%, 0%, 44.3%)
CIE-LABlab(30.03, 18.59, -45.33)
CIE-LCHlch(30.03, 48.99, 292.30°)
OKLaboklab(40.36% -0.0044 -0.1303)
OKLCHoklch(40.36% 0.13 268.1)
XYZxyz(7.7674, 6.2464, 26.3823)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B418E #8E782B
analogous
#2B738E #2B418E #472B8E
triadic
#2B418E #8E2B41 #418E2B
tetradic
#2B418E #8E2B73 #8E782B #2B8E47
square
#2B418E #8E2B73 #8E782B #2B8E47
split-complementary
#2B418E #8E472B #738E2B
monochromatic
#0F1630 #1D2B5F #2B418E #3957BD #637CD0

Accessibility & contrast

On white

9.34
#2B418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2B418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B418E
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B418E#FFFFFF#000000##FFFFFF
##2B418E1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b418e;
/* rgb */ color: rgb(43, 65, 142);
/* oklch */ color: oklch(40.4% 0.130 268.1);
Tailwind
colors: {
  custom: {
    50: '#7175b0',
    500: '#2b418e',
    950: '#000000',
  },
}
SCSS
$custom: #2b418e;
$custom-light: #7175b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b418e",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 226.667,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40364,
    "c": 0.13035,
    "h": 268.1
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#2B418E
secondary
#B6A35F
accent
#BC4BDD
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2B418E

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

Preview Lab → · Contrast checker → · Palette generator →

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