#2E5FAB#2E5FAB

#2E5FAB is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.133 H 259.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#2E5FAB
RGBrgb(46, 95, 171)
HSLhsl(216, 58%, 43%)
HSVhsv(216, 73%, 67%)
CMYKcmyk(73.1%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.74, 10.14, -45.55)
CIE-LCHlch(40.74, 46.66, 282.56°)
OKLaboklab(49.22% -0.0254 -0.1303)
OKLCHoklch(49.22% 0.133 259)
XYZxyz(12.5669, 11.7042, 40.1170)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5FAB #AB7A2E
analogous
#2E9EAB #2E5FAB #3B2EAB
triadic
#2E5FAB #AB2E5F #5FAB2E
tetradic
#2E5FAB #AB2E9E #AB7A2E #2EAB3B
square
#2E5FAB #AB2E9E #AB7A2E #2EAB3B
split-complementary
#2E5FAB #AB3B2E #9EAB2E
monochromatic
#14294B #21447B #2E5FAB #487DCE #799FDB

Accessibility & contrast

On white

6.29
#2E5FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2E5FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5FAB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5FAB#FFFFFF#000000##FFFFFF
##2E5FAB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#225BA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2e5fab;
/* rgb */ color: rgb(46, 95, 171);
/* oklch */ color: oklch(49.2% 0.133 259.0);
Tailwind
colors: {
  custom: {
    50: '#778bc4',
    500: '#2e5fab',
    950: '#000000',
  },
}
SCSS
$custom: #2e5fab;
$custom-light: #778bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5fab",
  "rgb": {
    "r": 46,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 216.48,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.1328,
    "h": 259
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#2E5FAB
secondary
#C3A372
accent
#A547E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2E5FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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