#2E407C#2E407C

#2E407C is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.0% C 0.104 H 268.7°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2E407C
RGBrgb(46, 64, 124)
HSLhsl(226, 46%, 33%)
HSVhsv(226, 63%, 49%)
CMYKcmyk(62.9%, 48.4%, 0%, 51.4%)
CIE-LABlab(28.65, 13.03, -36.36)
CIE-LCHlch(28.65, 38.63, 289.71°)
OKLaboklab(38.96% -0.0024 -0.1038)
OKLCHoklch(38.96% 0.104 268.7)
XYZxyz(6.5970, 5.7023, 19.8179)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E407C #7C6A2E
analogous
#2E677C #2E407C #432E7C
triadic
#2E407C #7C2E40 #407C2E
tetradic
#2E407C #7C2E67 #7C6A2E #2E7C43
square
#2E407C #7C2E67 #7C6A2E #2E7C43
split-complementary
#2E407C #7C432E #677C2E
monochromatic
#0D1223 #1D294F #2E407C #3F57A9 #6077C4

Accessibility & contrast

On white

9.81
#2E407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E407C
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E407C#FFFFFF#000000##FFFFFF
##2E407C1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477E
Deuteranopia (green-blind)
#16407B
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e407c;
/* rgb */ color: rgb(46, 64, 124);
/* oklch */ color: oklch(39.0% 0.104 268.7);
Tailwind
colors: {
  custom: {
    50: '#6f74a2',
    500: '#2e407c',
    950: '#000000',
  },
}
SCSS
$custom: #2e407c;
$custom-light: #6f74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e407c",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 226.154,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38962,
    "c": 0.10387,
    "h": 268.7
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#2E407C
secondary
#AB985B
accent
#B752D6
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2E407C

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

Preview Lab → · Contrast checker → · Palette generator →

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