#2E418C#2E418C

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

Color values

HEX#2E418C
RGBrgb(46, 65, 140)
HSLhsl(228, 51%, 36%)
HSVhsv(228, 67%, 55%)
CMYKcmyk(67.1%, 53.6%, 0%, 45.1%)
CIE-LABlab(30.04, 18.34, -44.06)
CIE-LCHlch(30.04, 47.72, 292.60°)
OKLaboklab(40.38% -0.0015 -0.1265)
OKLCHoklch(40.38% 0.126 269.3)
XYZxyz(7.7490, 6.2542, 25.6047)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E418C #8C792E
analogous
#2E708C #2E418C #4A2E8C
triadic
#2E418C #8C2E41 #418C2E
tetradic
#2E418C #8C2E70 #8C792E #2E8C4A
square
#2E418C #8C2E70 #8C792E #2E8C4A
split-complementary
#2E418C #8C4A2E #708C2E
monochromatic
#101630 #1F2C5E #2E418C #3D56BA #677CCD

Accessibility & contrast

On white

9.33
#2E418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E418C
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E418C#FFFFFF#000000##FFFFFF
##2E418C1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e418c;
/* rgb */ color: rgb(46, 65, 140);
/* oklch */ color: oklch(40.4% 0.126 269.3);
Tailwind
colors: {
  custom: {
    50: '#7275ae',
    500: '#2e418c',
    950: '#000000',
  },
}
SCSS
$custom: #2e418c;
$custom-light: #7275ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e418c",
  "rgb": {
    "r": 46,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 227.872,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40377,
    "c": 0.12648,
    "h": 269.3
  },
  "luminance": 0.06255
}

Semantic roles & 50–950 ramp

primary
#2E418C
secondary
#B4A362
accent
#BE4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #2E418C

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

Preview Lab → · Contrast checker → · Palette generator →

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