#2E5B9D#2E5B9D

#2E5B9D is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.4% C 0.118 H 258.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2E5B9D
RGBrgb(46, 91, 157)
HSLhsl(216, 55%, 40%)
HSVhsv(216, 71%, 62%)
CMYKcmyk(70.7%, 42%, 0%, 38.4%)
CIE-LABlab(38.72, 7.45, -40.46)
CIE-LCHlch(38.72, 41.14, 280.43°)
OKLaboklab(47.38% -0.0244 -0.1155)
OKLCHoklch(47.38% 0.118 258)
XYZxyz(10.9514, 10.4962, 33.3406)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5B9D #9D702E
analogous
#2E929D #2E5B9D #392E9D
triadic
#2E5B9D #9D2E5B #5B9D2E
tetradic
#2E5B9D #9D2E92 #9D702E #2E9D39
square
#2E5B9D #9D2E92 #9D702E #2E9D39
split-complementary
#2E5B9D #9D392E #929D2E
monochromatic
#12243E #20406E #2E5B9D #4177C7 #7099D5

Accessibility & contrast

On white

6.78
#2E5B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2E5B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5B9D
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5B9D#FFFFFF#000000##FFFFFF
##2E5B9D1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C61A0
Deuteranopia (green-blind)
#2A569C
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e5b9d;
/* rgb */ color: rgb(46, 91, 157);
/* oklch */ color: oklch(47.4% 0.118 258.0);
Tailwind
colors: {
  custom: {
    50: '#7488ba',
    500: '#2e5b9d',
    950: '#000000',
  },
}
SCSS
$custom: #2e5b9d;
$custom-light: #7488ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5b9d",
  "rgb": {
    "r": 46,
    "g": 91,
    "b": 157
  },
  "hsl": {
    "h": 215.676,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47381,
    "c": 0.11803,
    "h": 258
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

primary
#2E5B9D
secondary
#BD9B6A
accent
#A24ADE
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2E5B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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