#2B418F#2B418F

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

Color values

HEX#2B418F
RGBrgb(43, 65, 143)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 56%)
CMYKcmyk(69.9%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.10, 18.97, -45.83)
CIE-LCHlch(30.10, 49.60, 292.49°)
OKLaboklab(40.44% -0.0043 -0.1317)
OKLCHoklch(40.44% 0.132 268.1)
XYZxyz(7.8428, 6.2766, 26.7795)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B418F #8F792B
analogous
#2B738F #2B418F #472B8F
triadic
#2B418F #8F2B41 #418F2B
tetradic
#2B418F #8F2B73 #8F792B #2B8F47
square
#2B418F #8F2B73 #8F792B #2B8F47
split-complementary
#2B418F #8F472B #738F2B
monochromatic
#0F1631 #1D2C60 #2B418F #3956BE #647CD0

Accessibility & contrast

On white

9.31
#2B418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2B418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B418F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B418F#FFFFFF#000000##FFFFFF
##2B418F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4C92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2b418f;
/* rgb */ color: rgb(43, 65, 143);
/* oklch */ color: oklch(40.4% 0.132 268.1);
Tailwind
colors: {
  custom: {
    50: '#7175b0',
    500: '#2b418f',
    950: '#000000',
  },
}
SCSS
$custom: #2b418f;
$custom-light: #7175b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b418f",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 226.8,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40444,
    "c": 0.1318,
    "h": 268.1
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#2B418F
secondary
#B7A35F
accent
#BD4BDD
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2B418F

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

Preview Lab → · Contrast checker → · Palette generator →

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