#2E4CAB#2E4CAB

#2E4CAB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.156 H 266.7°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#2E4CAB
RGBrgb(46, 76, 171)
HSLhsl(226, 58%, 43%)
HSVhsv(226, 73%, 67%)
CMYKcmyk(73.1%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.38, 22.64, -54.20)
CIE-LCHlch(35.38, 58.73, 292.67°)
OKLaboklab(45.13% -0.0089 -0.1561)
OKLCHoklch(45.13% 0.156 266.7)
XYZxyz(11.0593, 8.6888, 39.6144)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4CAB #AB8D2E
analogous
#2E8BAB #2E4CAB #4E2EAB
triadic
#2E4CAB #AB2E4C #4CAB2E
tetradic
#2E4CAB #AB2E8B #AB8D2E #2EAB4E
square
#2E4CAB #AB2E8B #AB8D2E #2EAB4E
split-complementary
#2E4CAB #AB4E2E #8BAB2E
monochromatic
#14214B #21377B #2E4CAB #4868CE #7990DB

Accessibility & contrast

On white

7.67
#2E4CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2E4CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4CAB
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4CAB#FFFFFF#000000##FFFFFF
##2E4CAB1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e4cab;
/* rgb */ color: rgb(46, 76, 171);
/* oklch */ color: oklch(45.1% 0.156 266.7);
Tailwind
colors: {
  custom: {
    50: '#787dc5',
    500: '#2e4cab',
    950: '#000000',
  },
}
SCSS
$custom: #2e4cab;
$custom-light: #787dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4cab",
  "rgb": {
    "r": 46,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 225.6,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45126,
    "c": 0.15637,
    "h": 266.7
  },
  "luminance": 0.0869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E4CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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