#2E45A2#2E45A2

#2E45A2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.153 H 268.6°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2E45A2
RGBrgb(46, 69, 162)
HSLhsl(228, 56%, 41%)
HSVhsv(228, 72%, 64%)
CMYKcmyk(71.6%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.80, 23.91, -53.00)
CIE-LCHlch(32.80, 58.14, 294.29°)
OKLaboklab(42.97% -0.0037 -0.1527)
OKLCHoklch(42.97% 0.153 268.6)
XYZxyz(9.7742, 7.4447, 35.0973)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E45A2 #A28B2E
analogous
#2E7FA2 #2E45A2 #512EA2
triadic
#2E45A2 #A22E45 #45A22E
tetradic
#2E45A2 #A22E7F #A28B2E #2EA251
square
#2E45A2 #A22E7F #A28B2E #2EA251
split-complementary
#2E45A2 #A2512E #7FA22E
monochromatic
#131C43 #203172 #2E45A2 #435ECA #7387D7

Accessibility & contrast

On white

8.44
#2E45A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2E45A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E45A2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E45A2#FFFFFF#000000##FFFFFF
##2E45A21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2e45a2;
/* rgb */ color: rgb(46, 69, 162);
/* oklch */ color: oklch(43.0% 0.153 268.6);
Tailwind
colors: {
  custom: {
    50: '#7678be',
    500: '#2e45a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e45a2;
$custom-light: #7678be;
$custom-dark: #000000;
JSON
{
  "hex": "#2e45a2",
  "rgb": {
    "r": 46,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 228.103,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42972,
    "c": 0.15275,
    "h": 268.6
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#2E45A2
secondary
#BFAF6D
accent
#C149DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2E45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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