#2E5898#2E5898

#2E5898 is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.4% C 0.115 H 258.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2E5898
RGBrgb(46, 88, 152)
HSLhsl(216, 54%, 39%)
HSVhsv(216, 70%, 60%)
CMYKcmyk(69.7%, 42.1%, 0%, 40.4%)
CIE-LABlab(37.53, 7.51, -39.36)
CIE-LCHlch(37.53, 40.07, 280.81°)
OKLaboklab(46.36% -0.0226 -0.1123)
OKLCHoklch(46.36% 0.115 258.6)
XYZxyz(10.2819, 9.8262, 31.0545)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5898 #986E2E
analogous
#2E8D98 #2E5898 #392E98
triadic
#2E5898 #982E58 #58982E
tetradic
#2E5898 #982E8D #986E2E #2E9839
square
#2E5898 #982E8D #986E2E #2E9839
split-complementary
#2E5898 #98392E #8D982E
monochromatic
#12223A #203D69 #2E5898 #3E74C5 #6D96D3

Accessibility & contrast

On white

7.08
#2E5898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2E5898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5898
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5898#FFFFFF#000000##FFFFFF
##2E58981.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9B
Deuteranopia (green-blind)
#295497
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e5898;
/* rgb */ color: rgb(46, 88, 152);
/* oklch */ color: oklch(46.4% 0.115 258.6);
Tailwind
colors: {
  custom: {
    50: '#7386b7',
    500: '#2e5898',
    950: '#000000',
  },
}
SCSS
$custom: #2e5898;
$custom-light: #7386b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5898",
  "rgb": {
    "r": 46,
    "g": 88,
    "b": 152
  },
  "hsl": {
    "h": 216.226,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46362,
    "c": 0.11453,
    "h": 258.6
  },
  "luminance": 0.09827
}

Semantic roles & 50–950 ramp

primary
#2E5898
secondary
#BA9968
accent
#A34BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2E5898

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

Preview Lab → · Contrast checker → · Palette generator →

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