#2E4F9F#2E4F9F

#2E4F9F is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.136 H 264.6°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2E4F9F
RGBrgb(46, 79, 159)
HSLhsl(222, 55%, 40%)
HSVhsv(222, 71%, 62%)
CMYKcmyk(71.1%, 50.3%, 0%, 37.6%)
CIE-LABlab(35.35, 16.10, -47.06)
CIE-LCHlch(35.35, 49.74, 288.89°)
OKLaboklab(44.83% -0.0127 -0.1351)
OKLCHoklch(44.83% 0.136 264.6)
XYZxyz(10.1785, 8.6750, 33.9322)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4F9F #9F7E2E
analogous
#2E879F #2E4F9F #462E9F
triadic
#2E4F9F #9F2E4F #4F9F2E
tetradic
#2E4F9F #9F2E87 #9F7E2E #2E9F46
square
#2E4F9F #9F2E87 #9F7E2E #2E9F46
split-complementary
#2E4F9F #9F462E #879F2E
monochromatic
#132040 #203770 #2E4F9F #4269C8 #718FD6

Accessibility & contrast

On white

7.68
#2E4F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4F9F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4F9F#FFFFFF#000000##FFFFFF
##2E4F9F1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2159A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2e4f9f;
/* rgb */ color: rgb(46, 79, 159);
/* oklch */ color: oklch(44.8% 0.136 264.6);
Tailwind
colors: {
  custom: {
    50: '#757fbc',
    500: '#2e4f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2e4f9f;
$custom-light: #757fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4f9f",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 222.478,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44832,
    "c": 0.13567,
    "h": 264.6
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#2E4F9F
secondary
#BEA66B
accent
#B349DE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2E4F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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