#2E3C8D#2E3C8D

#2E3C8D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.135 H 271.4°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2E3C8D
RGBrgb(46, 60, 141)
HSLhsl(231, 51%, 37%)
HSVhsv(231, 67%, 55%)
CMYKcmyk(67.4%, 57.4%, 0%, 44.7%)
CIE-LABlab(28.73, 22.10, -46.80)
CIE-LCHlch(28.73, 51.76, 295.28°)
OKLaboklab(39.42% 0.0034 -0.1346)
OKLCHoklch(39.42% 0.135 271.4)
XYZxyz(7.5487, 5.7350, 25.9033)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3C8D #8D7F2E
analogous
#2E6C8D #2E3C8D #502E8D
triadic
#2E3C8D #8D2E3C #3C8D2E
tetradic
#2E3C8D #8D2E6C #8D7F2E #2E8D50
square
#2E3C8D #8D2E6C #8D7F2E #2E8D50
split-complementary
#2E3C8D #8D502E #6C8D2E
monochromatic
#101531 #1F285F #2E3C8D #3D50BB #6877CE

Accessibility & contrast

On white

9.78
#2E3C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2E3C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3C8D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3C8D#FFFFFF#000000##FFFFFF
##2E3C8D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e3c8d;
/* rgb */ color: rgb(46, 60, 141);
/* oklch */ color: oklch(39.4% 0.135 271.4);
Tailwind
colors: {
  custom: {
    50: '#7271af',
    500: '#2e3c8d',
    950: '#000000',
  },
}
SCSS
$custom: #2e3c8d;
$custom-light: #7271af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3c8d",
  "rgb": {
    "r": 46,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 231.158,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39415,
    "c": 0.13464,
    "h": 271.4
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#2E3C8D
secondary
#B5A862
accent
#C64EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2E3C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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