#2E45C2#2E45C2

#2E45C2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.8% C 0.196 H 268.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#2E45C2
RGBrgb(46, 69, 194)
HSLhsl(231, 62%, 47%)
HSVhsv(231, 76%, 76%)
CMYKcmyk(76.3%, 64.4%, 0%, 23.9%)
CIE-LABlab(35.46, 35.73, -67.63)
CIE-LCHlch(35.46, 76.49, 297.85°)
OKLaboklab(45.77% -0.0039 -0.1956)
OKLCHoklch(45.77% 0.196 268.9)
XYZxyz(12.9891, 8.7307, 52.0291)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45C2 #C2AB2E
analogous
#2E8FC2 #2E45C2 #612EC2
triadic
#2E45C2 #C22E45 #45C22E
tetradic
#2E45C2 #C22E8F #C2AB2E #2EC261
square
#2E45C2 #C22E8F #C2AB2E #2EC261
split-complementary
#2E45C2 #C2612E #8FC22E
monochromatic
#17225F #223391 #2E45C2 #566AD7 #8896E3

Accessibility & contrast

On white

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

On black

2.75
#2E45C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2E45C2#FFFFFF#000000##FFFFFF
##2E45C21.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2e45c2;
/* rgb */ color: rgb(46, 69, 194);
/* oklch */ color: oklch(45.8% 0.196 268.9);
Tailwind
colors: {
  custom: {
    50: '#7e78d6',
    500: '#2e45c2',
    950: '#000000',
  },
}
SCSS
$custom: #2e45c2;
$custom-light: #7e78d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45c2",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 230.676,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45772,
    "c": 0.19569,
    "h": 268.9
  },
  "luminance": 0.08732
}

Semantic roles & 50–950 ramp

primary
#2E45C2
secondary
#CCC07F
accent
#CC43E5
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #2E45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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