#2E4CAC#2E4CAC

#2E4CAC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.158 H 266.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2E4CAC
RGBrgb(46, 76, 172)
HSLhsl(226, 58%, 43%)
HSVhsv(226, 73%, 67%)
CMYKcmyk(73.3%, 55.8%, 0%, 32.5%)
CIE-LABlab(35.45, 23.02, -54.67)
CIE-LCHlch(35.45, 59.32, 292.83°)
OKLaboklab(45.21% -0.0089 -0.1575)
OKLCHoklch(45.21% 0.158 266.8)
XYZxyz(11.1550, 8.7271, 40.1183)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4CAC #AC8E2E
analogous
#2E8BAC #2E4CAC #4F2EAC
triadic
#2E4CAC #AC2E4C #4CAC2E
tetradic
#2E4CAC #AC2E8B #AC8E2E #2EAC4F
square
#2E4CAC #AC2E8B #AC8E2E #2EAC4F
split-complementary
#2E4CAC #AC4F2E #8BAC2E
monochromatic
#14214B #21377C #2E4CAC #4969CE #7991DB

Accessibility & contrast

On white

7.65
#2E4CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2E4CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4CAC
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4CAC#FFFFFF#000000##FFFFFF
##2E4CAC1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2e4cac;
/* rgb */ color: rgb(46, 76, 172);
/* oklch */ color: oklch(45.2% 0.158 266.8);
Tailwind
colors: {
  custom: {
    50: '#787dc5',
    500: '#2e4cac',
    950: '#000000',
  },
}
SCSS
$custom: #2e4cac;
$custom-light: #787dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4cac",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 172
  },
  "hsl": {
    "h": 225.714,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45207,
    "c": 0.15776,
    "h": 266.8
  },
  "luminance": 0.08728
}

Semantic roles & 50–950 ramp

primary
#2E4CAC
secondary
#C3B072
accent
#BC47E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2E4CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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