#2E5799#2E5799

#2E5799 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.2% C 0.117 H 259.5°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2E5799
RGBrgb(46, 87, 153)
HSLhsl(217, 54%, 39%)
HSVhsv(217, 70%, 60%)
CMYKcmyk(69.9%, 43.1%, 0%, 40%)
CIE-LABlab(37.29, 8.54, -40.34)
CIE-LCHlch(37.29, 41.23, 281.96°)
OKLaboklab(46.2% -0.0213 -0.1152)
OKLCHoklch(46.2% 0.117 259.5)
XYZxyz(10.2826, 9.6961, 31.4604)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5799 #99702E
analogous
#2E8D99 #2E5799 #3A2E99
triadic
#2E5799 #992E57 #57992E
tetradic
#2E5799 #992E8D #99702E #2E993A
square
#2E5799 #992E8D #99702E #2E993A
split-complementary
#2E5799 #993A2E #8D992E
monochromatic
#12213B #203C6A #2E5799 #3F72C5 #6E95D3

Accessibility & contrast

On white

7.14
#2E5799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2E5799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E5799
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5799#FFFFFF#000000##FFFFFF
##2E57991.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9C
Deuteranopia (green-blind)
#265398
Tritanopia (blue-blind)
#006670
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e5799;
/* rgb */ color: rgb(46, 87, 153);
/* oklch */ color: oklch(46.2% 0.117 259.5);
Tailwind
colors: {
  custom: {
    50: '#7485b7',
    500: '#2e5799',
    950: '#000000',
  },
}
SCSS
$custom: #2e5799;
$custom-light: #7485b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5799",
  "rgb": {
    "r": 46,
    "g": 87,
    "b": 153
  },
  "hsl": {
    "h": 217.009,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46198,
    "c": 0.11714,
    "h": 259.5
  },
  "luminance": 0.09697
}

Semantic roles & 50–950 ramp

primary
#2E5799
secondary
#BB9B68
accent
#A54BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2E5799

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

Preview Lab → · Contrast checker → · Palette generator →

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