#2E509C#2E509C

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

Color values

HEX#2E509C
RGBrgb(46, 80, 156)
HSLhsl(221, 54%, 40%)
HSVhsv(221, 71%, 61%)
CMYKcmyk(70.5%, 48.7%, 0%, 38.8%)
CIE-LABlab(35.43, 14.30, -45.12)
CIE-LCHlch(35.43, 47.33, 287.58°)
OKLaboklab(44.83% -0.014 -0.1293)
OKLCHoklch(44.83% 0.13 263.8)
XYZxyz(9.9940, 8.7174, 32.6020)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E509C #9C7A2E
analogous
#2E879C #2E509C #432E9C
triadic
#2E509C #9C2E50 #509C2E
tetradic
#2E509C #9C2E87 #9C7A2E #2E9C43
square
#2E509C #9C2E87 #9C7A2E #2E9C43
split-complementary
#2E509C #9C432E #879C2E
monochromatic
#12203D #20386D #2E509C #406AC7 #708FD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E509C#FFFFFF#000000##FFFFFF
##2E509C1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27599F
Deuteranopia (green-blind)
#0B4F9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2e509c;
/* rgb */ color: rgb(46, 80, 156);
/* oklch */ color: oklch(44.8% 0.130 263.8);
Tailwind
colors: {
  custom: {
    50: '#7480ba',
    500: '#2e509c',
    950: '#000000',
  },
}
SCSS
$custom: #2e509c;
$custom-light: #7480ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e509c",
  "rgb": {
    "r": 46,
    "g": 80,
    "b": 156
  },
  "hsl": {
    "h": 221.455,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44831,
    "c": 0.13011,
    "h": 263.8
  },
  "luminance": 0.08718
}

Semantic roles & 50–950 ramp

primary
#2E509C
secondary
#BCA36A
accent
#B04ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2E509C

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

Preview Lab → · Contrast checker → · Palette generator →

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