#2B41AB#2B41AB

#2B41AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.171 H 268.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2B41AB
RGBrgb(43, 65, 171)
HSLhsl(230, 60%, 42%)
HSVhsv(230, 75%, 67%)
CMYKcmyk(74.9%, 62%, 0%, 32.9%)
CIE-LABlab(32.33, 29.55, -59.16)
CIE-LCHlch(32.33, 66.13, 296.54°)
OKLaboklab(42.81% -0.0034 -0.1709)
OKLCHoklch(42.81% 0.171 268.8)
XYZxyz(10.2347, 7.2334, 39.3770)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B41AB #AB952B
analogous
#2B81AB #2B41AB #552BAB
triadic
#2B41AB #AB2B41 #41AB2B
tetradic
#2B41AB #AB2B81 #AB952B #2BAB55
square
#2B41AB #AB2B81 #AB952B #2BAB55
split-complementary
#2B41AB #AB552B #81AB2B
monochromatic
#121C49 #1F2E7A #2B41AB #435CD0 #7486DC

Accessibility & contrast

On white

8.58
#2B41AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2B41AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B41AB
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B41AB#FFFFFF#000000##FFFFFF
##2B41AB1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2b41ab;
/* rgb */ color: rgb(43, 65, 171);
/* oklch */ color: oklch(42.8% 0.171 268.8);
Tailwind
colors: {
  custom: {
    50: '#7875c5',
    500: '#2b41ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b41ab;
$custom-light: #7875c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b41ab",
  "rgb": {
    "r": 43,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 229.688,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42812,
    "c": 0.17095,
    "h": 268.8
  },
  "luminance": 0.07234
}

Semantic roles & 50–950 ramp

primary
#2B41AB
secondary
#C4B56E
accent
#C845E3
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2B41AB

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

Preview Lab → · Contrast checker → · Palette generator →

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