#2845A4#2845A4

#2845A4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.157 H 266.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#2845A4
RGBrgb(40, 69, 164)
HSLhsl(226, 61%, 40%)
HSVhsv(226, 76%, 64%)
CMYKcmyk(75.6%, 57.9%, 0%, 35.7%)
CIE-LABlab(32.67, 23.88, -54.42)
CIE-LCHlch(32.67, 59.43, 293.69°)
OKLaboklab(42.85% -0.0091 -0.157)
OKLCHoklch(42.85% 0.157 266.7)
XYZxyz(9.7017, 7.3866, 36.0292)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845A4 #A48728
analogous
#2883A4 #2845A4 #4928A4
triadic
#2845A4 #A42845 #45A428
tetradic
#2845A4 #A42883 #A48728 #28A449
square
#2845A4 #A42883 #A48728 #28A449
split-complementary
#2845A4 #A44928 #83A428
monochromatic
#101C42 #1C3073 #2845A4 #3A5DCF #6B85DB

Accessibility & contrast

On white

8.48
#2845A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2845A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845A4
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845A4#FFFFFF#000000##FFFFFF
##2845A41.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2845a4;
/* rgb */ color: rgb(40, 69, 164);
/* oklch */ color: oklch(42.8% 0.157 266.7);
Tailwind
colors: {
  custom: {
    50: '#7578c0',
    500: '#2845a4',
    950: '#000000',
  },
}
SCSS
$custom: #2845a4;
$custom-light: #7578c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2845a4",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 225.968,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.42848,
    "c": 0.15727,
    "h": 266.7
  },
  "luminance": 0.07388
}

Semantic roles & 50–950 ramp

primary
#2845A4
secondary
#C1AC66
accent
#BE44E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2845A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2845A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva