#2E5A98#2E5A98

#2E5A98 is a mid, moderate blue. Relative luminance 0.102; OKLCH L 46.8% C 0.112 H 257.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2E5A98
RGBrgb(46, 90, 152)
HSLhsl(215, 54%, 39%)
HSVhsv(215, 70%, 60%)
CMYKcmyk(69.7%, 40.8%, 0%, 40.4%)
CIE-LABlab(38.13, 6.21, -38.41)
CIE-LCHlch(38.13, 38.91, 279.19°)
OKLaboklab(46.83% -0.0246 -0.1095)
OKLCHoklch(46.83% 0.112 257.3)
XYZxyz(10.4483, 10.1591, 31.1099)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5A98 #986C2E
analogous
#2E8F98 #2E5A98 #372E98
triadic
#2E5A98 #982E5A #5A982E
tetradic
#2E5A98 #982E8F #986C2E #2E9837
square
#2E5A98 #982E8F #986C2E #2E9837
split-complementary
#2E5A98 #98372E #8F982E
monochromatic
#12223A #203E69 #2E5A98 #3E76C5 #6D98D3

Accessibility & contrast

On white

6.93
#2E5A98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2E5A98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5A98
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5A98#FFFFFF#000000##FFFFFF
##2E5A981.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#006871
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2e5a98;
/* rgb */ color: rgb(46, 90, 152);
/* oklch */ color: oklch(46.8% 0.112 257.3);
Tailwind
colors: {
  custom: {
    50: '#7388b7',
    500: '#2e5a98',
    950: '#000000',
  },
}
SCSS
$custom: #2e5a98;
$custom-light: #7388b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5a98",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 152
  },
  "hsl": {
    "h": 215.094,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46826,
    "c": 0.11219,
    "h": 257.3
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

primary
#2E5A98
secondary
#BA9868
accent
#A04BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2E5A98

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

Preview Lab → · Contrast checker → · Palette generator →

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