#2E418E#2E418E

#2E418E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.129 H 269.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2E418E
RGBrgb(46, 65, 142)
HSLhsl(228, 51%, 37%)
HSVhsv(228, 68%, 56%)
CMYKcmyk(67.6%, 54.2%, 0%, 44.3%)
CIE-LABlab(30.19, 19.09, -45.06)
CIE-LCHlch(30.19, 48.93, 292.96°)
OKLaboklab(40.53% -0.0013 -0.1294)
OKLCHoklch(40.53% 0.129 269.4)
XYZxyz(7.8978, 6.3137, 26.3884)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E418E #8E7B2E
analogous
#2E718E #2E418E #4B2E8E
triadic
#2E418E #8E2E41 #418E2E
tetradic
#2E418E #8E2E71 #8E7B2E #2E8E4B
square
#2E418E #8E2E71 #8E7B2E #2E8E4B
split-complementary
#2E418E #8E4B2E #718E2E
monochromatic
#101732 #1F2C60 #2E418E #3D56BC #687CCE

Accessibility & contrast

On white

9.28
#2E418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E418E
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E418E#FFFFFF#000000##FFFFFF
##2E418E1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e418e;
/* rgb */ color: rgb(46, 65, 142);
/* oklch */ color: oklch(40.5% 0.129 269.4);
Tailwind
colors: {
  custom: {
    50: '#7275b0',
    500: '#2e418e',
    950: '#000000',
  },
}
SCSS
$custom: #2e418e;
$custom-light: #7275b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e418e",
  "rgb": {
    "r": 46,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 228.125,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40533,
    "c": 0.12941,
    "h": 269.4
  },
  "luminance": 0.06314
}

Semantic roles & 50–950 ramp

primary
#2E418E
secondary
#B5A563
accent
#BF4DDB
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2E418E

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

Preview Lab → · Contrast checker → · Palette generator →

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