#2845A9#2845A9

#2845A9 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.3% C 0.164 H 266.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#2845A9
RGBrgb(40, 69, 169)
HSLhsl(227, 62%, 41%)
HSVhsv(227, 76%, 66%)
CMYKcmyk(76.3%, 59.2%, 0%, 33.7%)
CIE-LABlab(33.07, 25.79, -56.76)
CIE-LCHlch(33.07, 62.35, 294.44°)
OKLaboklab(43.27% -0.009 -0.1639)
OKLCHoklch(43.27% 0.164 266.9)
XYZxyz(10.1621, 7.5708, 38.4542)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845A9 #A98C28
analogous
#2885A9 #2845A9 #4C28A9
triadic
#2845A9 #A92845 #45A928
tetradic
#2845A9 #A92885 #A98C28 #28A94C
square
#2845A9 #A92885 #A98C28 #28A94C
split-complementary
#2845A9 #A94C28 #85A928
monochromatic
#111D46 #1C3178 #2845A9 #3D5ED1 #6F87DD

Accessibility & contrast

On white

8.35
#2845A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2845A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845A9
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845A9#FFFFFF#000000##FFFFFF
##2845A91.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#0048A7
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2845a9;
/* rgb */ color: rgb(40, 69, 169);
/* oklch */ color: oklch(43.3% 0.164 266.9);
Tailwind
colors: {
  custom: {
    50: '#7678c3',
    500: '#2845a9',
    950: '#000000',
  },
}
SCSS
$custom: #2845a9;
$custom-light: #7678c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2845a9",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 169
  },
  "hsl": {
    "h": 226.512,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43274,
    "c": 0.16414,
    "h": 266.9
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#2845A9
secondary
#C4AF69
accent
#C043E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2845A9

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

Preview Lab → · Contrast checker → · Palette generator →

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