#2E5A9E#2E5A9E

#2E5A9E is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.2% C 0.121 H 258.9°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2E5A9E
RGBrgb(46, 90, 158)
HSLhsl(216, 55%, 40%)
HSVhsv(216, 71%, 62%)
CMYKcmyk(70.9%, 43%, 0%, 38%)
CIE-LABlab(38.48, 8.47, -41.44)
CIE-LCHlch(38.48, 42.29, 281.56°)
OKLaboklab(47.22% -0.0233 -0.1184)
OKLCHoklch(47.22% 0.121 258.9)
XYZxyz(10.9522, 10.3606, 33.7637)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5A9E #9E722E
analogous
#2E929E #2E5A9E #3A2E9E
triadic
#2E5A9E #9E2E5A #5A9E2E
tetradic
#2E5A9E #9E2E92 #9E722E #2E9E3A
square
#2E5A9E #9E2E92 #9E722E #2E9E3A
split-complementary
#2E5A9E #9E3A2E #929E2E
monochromatic
#12243F #203F6F #2E5A9E #4176C8 #7198D6

Accessibility & contrast

On white

6.84
#2E5A9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2E5A9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5A9E
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5A9E#FFFFFF#000000##FFFFFF
##2E5A9E1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A1
Deuteranopia (green-blind)
#27569D
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e5a9e;
/* rgb */ color: rgb(46, 90, 158);
/* oklch */ color: oklch(47.2% 0.121 258.9);
Tailwind
colors: {
  custom: {
    50: '#7488bb',
    500: '#2e5a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2e5a9e;
$custom-light: #7488bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5a9e",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 158
  },
  "hsl": {
    "h": 216.429,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.47217,
    "c": 0.12062,
    "h": 258.9
  },
  "luminance": 0.10362
}

Semantic roles & 50–950 ramp

primary
#2E5A9E
secondary
#BD9D6B
accent
#A44ADE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2E5A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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