#2E41A6#2E41A6

#2E41A6 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.163 H 269.8°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2E41A6
RGBrgb(46, 65, 166)
HSLhsl(231, 57%, 42%)
HSVhsv(231, 72%, 65%)
CMYKcmyk(72.3%, 60.8%, 0%, 34.9%)
CIE-LABlab(32.06, 28.06, -56.60)
CIE-LCHlch(32.06, 63.17, 296.37°)
OKLaboklab(42.52% -0.0005 -0.1633)
OKLCHoklch(42.52% 0.163 269.8)
XYZxyz(9.8976, 7.1136, 36.9204)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E41A6 #A6932E
analogous
#2E7DA6 #2E41A6 #572EA6
triadic
#2E41A6 #A62E41 #41A62E
tetradic
#2E41A6 #A62E7D #A6932E #2EA657
square
#2E41A6 #A62E7D #A6932E #2EA657
split-complementary
#2E41A6 #A6572E #7DA62E
monochromatic
#131B46 #212E76 #2E41A6 #465BCC #7685D9

Accessibility & contrast

On white

8.67
#2E41A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2E41A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E41A6
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E41A6#FFFFFF#000000##FFFFFF
##2E41A61.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2e41a6;
/* rgb */ color: rgb(46, 65, 166);
/* oklch */ color: oklch(42.5% 0.163 269.8);
Tailwind
colors: {
  custom: {
    50: '#7875c1',
    500: '#2e41a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e41a6;
$custom-light: #7875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e41a6",
  "rgb": {
    "r": 46,
    "g": 65,
    "b": 166
  },
  "hsl": {
    "h": 230.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42524,
    "c": 0.16333,
    "h": 269.8
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

primary
#2E41A6
secondary
#C1B46F
accent
#C848E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E41A6

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

Preview Lab → · Contrast checker → · Palette generator →

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