#2E4FAF#2E4FAF

#2E4FAF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.158 H 266.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#2E4FAF
RGBrgb(46, 79, 175)
HSLhsl(225, 58%, 43%)
HSVhsv(225, 74%, 69%)
CMYKcmyk(73.7%, 54.9%, 0%, 31.4%)
CIE-LABlab(36.49, 22.16, -54.76)
CIE-LCHlch(36.49, 59.08, 292.03°)
OKLaboklab(46.06% -0.0111 -0.1577)
OKLCHoklch(46.06% 0.158 266)
XYZxyz(11.6578, 9.2667, 41.7234)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4FAF #AF8E2E
analogous
#2E8FAF #2E4FAF #4D2EAF
triadic
#2E4FAF #AF2E4F #4FAF2E
tetradic
#2E4FAF #AF2E8F #AF8E2E #2EAF4D
square
#2E4FAF #AF2E8F #AF8E2E #2EAF4D
split-complementary
#2E4FAF #AF4D2E #8FAF2E
monochromatic
#15234E #21397F #2E4FAF #4B6DD0 #7B94DC

Accessibility & contrast

On white

7.36
#2E4FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2E4FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4FAF
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4FAF#FFFFFF#000000##FFFFFF
##2E4FAF1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e4faf;
/* rgb */ color: rgb(46, 79, 175);
/* oklch */ color: oklch(46.1% 0.158 266.0);
Tailwind
colors: {
  custom: {
    50: '#797fc8',
    500: '#2e4faf',
    950: '#000000',
  },
}
SCSS
$custom: #2e4faf;
$custom-light: #797fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4faf",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 224.651,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46061,
    "c": 0.15813,
    "h": 266
  },
  "luminance": 0.09268
}

Semantic roles & 50–950 ramp

primary
#2E4FAF
secondary
#C5B074
accent
#BA46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E4FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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