#2E5A9F#2E5A9F

#2E5A9F is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.3% C 0.122 H 259.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2E5A9F
RGBrgb(46, 90, 159)
HSLhsl(217, 55%, 40%)
HSVhsv(217, 71%, 62%)
CMYKcmyk(71.1%, 43.4%, 0%, 37.6%)
CIE-LABlab(38.54, 8.85, -41.94)
CIE-LCHlch(38.54, 42.86, 281.92°)
OKLaboklab(47.28% -0.023 -0.1198)
OKLCHoklch(47.28% 0.122 259.1)
XYZxyz(11.0386, 10.3952, 34.2189)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5A9F #9F732E
analogous
#2E939F #2E5A9F #3A2E9F
triadic
#2E5A9F #9F2E5A #5A9F2E
tetradic
#2E5A9F #9F2E93 #9F732E #2E9F3A
square
#2E5A9F #9F2E93 #9F732E #2E9F3A
split-complementary
#2E5A9F #9F3A2E #939F2E
monochromatic
#132440 #203F70 #2E5A9F #4276C8 #7199D6

Accessibility & contrast

On white

6.82
#2E5A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2E5A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5A9F
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5A9F#FFFFFF#000000##FFFFFF
##2E5A9F1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3960A2
Deuteranopia (green-blind)
#26569E
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2e5a9f;
/* rgb */ color: rgb(46, 90, 159);
/* oklch */ color: oklch(47.3% 0.122 259.1);
Tailwind
colors: {
  custom: {
    50: '#7588bc',
    500: '#2e5a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2e5a9f;
$custom-light: #7588bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5a9f",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 159
  },
  "hsl": {
    "h": 216.637,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47283,
    "c": 0.12203,
    "h": 259.1
  },
  "luminance": 0.10396
}

Semantic roles & 50–950 ramp

primary
#2E5A9F
secondary
#BE9D6B
accent
#A449DE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2E5A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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