#2E509F#2E509F

#2E509F is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.134 H 264.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#2E509F
RGBrgb(46, 80, 159)
HSLhsl(222, 55%, 40%)
HSVhsv(222, 71%, 62%)
CMYKcmyk(71.1%, 49.7%, 0%, 37.6%)
CIE-LABlab(35.64, 15.43, -46.60)
CIE-LCHlch(35.64, 49.09, 288.32°)
OKLaboklab(45.05% -0.0136 -0.1337)
OKLCHoklch(45.05% 0.134 264.2)
XYZxyz(10.2512, 8.8203, 33.9564)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E509F #9F7D2E
analogous
#2E889F #2E509F #452E9F
triadic
#2E509F #9F2E50 #509F2E
tetradic
#2E509F #9F2E88 #9F7D2E #2E9F45
square
#2E509F #9F2E88 #9F7D2E #2E9F45
split-complementary
#2E509F #9F452E #889F2E
monochromatic
#132040 #203870 #2E509F #426AC8 #7190D6

Accessibility & contrast

On white

7.60
#2E509F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2E509F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E509F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E509F#FFFFFF#000000##FFFFFF
##2E509F1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A2
Deuteranopia (green-blind)
#004F9D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e509f;
/* rgb */ color: rgb(46, 80, 159);
/* oklch */ color: oklch(45.0% 0.134 264.2);
Tailwind
colors: {
  custom: {
    50: '#7580bc',
    500: '#2e509f',
    950: '#000000',
  },
}
SCSS
$custom: #2e509f;
$custom-light: #7580bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e509f",
  "rgb": {
    "r": 46,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 221.947,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45049,
    "c": 0.1344,
    "h": 264.2
  },
  "luminance": 0.08821
}

Semantic roles & 50–950 ramp

primary
#2E509F
secondary
#BEA56B
accent
#B249DE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2E509F

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

Preview Lab → · Contrast checker → · Palette generator →

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