#2E4086#2E4086

#2E4086 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.119 H 269.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2E4086
RGBrgb(46, 64, 134)
HSLhsl(228, 49%, 35%)
HSVhsv(228, 66%, 53%)
CMYKcmyk(65.7%, 52.2%, 0%, 47.5%)
CIE-LABlab(29.33, 16.77, -41.50)
CIE-LCHlch(29.33, 44.76, 292.00°)
OKLaboklab(39.7% -0.0011 -0.1189)
OKLCHoklch(39.7% 0.119 269.5)
XYZxyz(7.2617, 5.9682, 23.3189)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4086 #86742E
analogous
#2E6C86 #2E4086 #482E86
triadic
#2E4086 #862E40 #40862E
tetradic
#2E4086 #862E6C #86742E #2E8648
square
#2E4086 #862E6C #86742E #2E8648
split-complementary
#2E4086 #86482E #6C862E
monochromatic
#0F142B #1E2A58 #2E4086 #3E56B4 #6479CA

Accessibility & contrast

On white

9.57
#2E4086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2E4086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4086
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4086#FFFFFF#000000##FFFFFF
##2E40861.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184989
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e4086;
/* rgb */ color: rgb(46, 64, 134);
/* oklch */ color: oklch(39.7% 0.119 269.5);
Tailwind
colors: {
  custom: {
    50: '#7174aa',
    500: '#2e4086',
    950: '#000000',
  },
}
SCSS
$custom: #2e4086;
$custom-light: #7174aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4086",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 227.727,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39701,
    "c": 0.11896,
    "h": 269.5
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#2E4086
secondary
#B1A05F
accent
#BC4FD8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2E4086

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

Preview Lab → · Contrast checker → · Palette generator →

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