#2E40C9#2E40C9

#2E40C9 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.6% C 0.210 H 269.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#2E40C9
RGBrgb(46, 64, 201)
HSLhsl(233, 63%, 48%)
HSVhsv(233, 77%, 79%)
CMYKcmyk(77.1%, 68.2%, 0%, 21.2%)
CIE-LABlab(34.93, 41.35, -72.59)
CIE-LCHlch(34.93, 83.54, 299.66°)
OKLaboklab(45.58% -0.0017 -0.2102)
OKLCHoklch(45.58% 0.21 269.5)
XYZxyz(13.4991, 8.4632, 56.1691)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E40C9 #C9B72E
analogous
#2E8DC9 #2E40C9 #692EC9
triadic
#2E40C9 #C92E40 #40C92E
tetradic
#2E40C9 #C92E8D #C9B72E #2EC969
square
#2E40C9 #C92E8D #C9B72E #2EC969
split-complementary
#2E40C9 #C9692E #8DC92E
monochromatic
#172065 #233097 #2E40C9 #5B69D9 #8D97E5

Accessibility & contrast

On white

7.80
#2E40C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2E40C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E40C9
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E40C9#FFFFFF#000000##FFFFFF
##2E40C91.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#004BC6
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2e40c9;
/* rgb */ color: rgb(46, 64, 201);
/* oklch */ color: oklch(45.6% 0.210 269.5);
Tailwind
colors: {
  custom: {
    50: '#8075db',
    500: '#2e40c9',
    950: '#000000',
  },
}
SCSS
$custom: #2e40c9;
$custom-light: #8075db;
$custom-dark: #000000;
JSON
{
  "hex": "#2e40c9",
  "rgb": {
    "r": 46,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 233.032,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45579,
    "c": 0.21017,
    "h": 269.5
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

primary
#2E40C9
secondary
#CFC684
accent
#D342E6
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2E40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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