#2E4797#2E4797

#2E4797 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.135 H 267.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2E4797
RGBrgb(46, 71, 151)
HSLhsl(226, 53%, 39%)
HSVhsv(226, 70%, 59%)
CMYKcmyk(69.5%, 53%, 0%, 40.8%)
CIE-LABlab(32.53, 18.43, -46.78)
CIE-LCHlch(32.53, 50.28, 291.50°)
OKLaboklab(42.51% -0.0062 -0.1344)
OKLCHoklch(42.51% 0.135 267.4)
XYZxyz(8.9639, 7.3208, 30.2128)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4797 #977E2E
analogous
#2E7B97 #2E4797 #492E97
triadic
#2E4797 #972E47 #47972E
tetradic
#2E4797 #972E7B #977E2E #2E9749
square
#2E4797 #972E7B #977E2E #2E9749
split-complementary
#2E4797 #97492E #7B972E
monochromatic
#111B39 #203168 #2E4797 #3E5EC4 #6D85D2

Accessibility & contrast

On white

8.52
#2E4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2E4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4797
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4797#FFFFFF#000000##FFFFFF
##2E47971.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14529A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2e4797;
/* rgb */ color: rgb(46, 71, 151);
/* oklch */ color: oklch(42.5% 0.135 267.4);
Tailwind
colors: {
  custom: {
    50: '#7479b6',
    500: '#2e4797',
    950: '#000000',
  },
}
SCSS
$custom: #2e4797;
$custom-light: #7479b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4797",
  "rgb": {
    "r": 46,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 225.714,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42506,
    "c": 0.13453,
    "h": 267.4
  },
  "luminance": 0.07322
}

Semantic roles & 50–950 ramp

primary
#2E4797
secondary
#BAA667
accent
#BA4BDD
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2E4797

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

Preview Lab → · Contrast checker → · Palette generator →

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