#2E4287#2E4287

#2E4287 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.118 H 268.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2E4287
RGBrgb(46, 66, 135)
HSLhsl(227, 49%, 35%)
HSVhsv(227, 66%, 53%)
CMYKcmyk(65.9%, 51.1%, 0%, 47.1%)
CIE-LABlab(29.98, 15.78, -41.08)
CIE-LCHlch(29.98, 44.01, 291.01°)
OKLaboklab(40.21% -0.0031 -0.1177)
OKLCHoklch(40.21% 0.118 268.5)
XYZxyz(7.4466, 6.2259, 23.7263)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4287 #87732E
analogous
#2E6E87 #2E4287 #462E87
triadic
#2E4287 #872E42 #42872E
tetradic
#2E4287 #872E6E #87732E #2E8746
square
#2E4287 #872E6E #87732E #2E8746
split-complementary
#2E4287 #87462E #6E872E
monochromatic
#0F152C #1E2C59 #2E4287 #3E58B5 #657CCA

Accessibility & contrast

On white

9.35
#2E4287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4287
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4287#FFFFFF#000000##FFFFFF
##2E42871.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B8A
Deuteranopia (green-blind)
#064386
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e4287;
/* rgb */ color: rgb(46, 66, 135);
/* oklch */ color: oklch(40.2% 0.118 268.5);
Tailwind
colors: {
  custom: {
    50: '#7176aa',
    500: '#2e4287',
    950: '#000000',
  },
}
SCSS
$custom: #2e4287;
$custom-light: #7176aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4287",
  "rgb": {
    "r": 46,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 226.517,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40211,
    "c": 0.11774,
    "h": 268.5
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#2E4287
secondary
#B19F60
accent
#BA4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2E4287

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

Preview Lab → · Contrast checker → · Palette generator →

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