#2845A0#2845A0

#2845A0 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.5% C 0.152 H 266.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2845A0
RGBrgb(40, 69, 160)
HSLhsl(226, 60%, 39%)
HSVhsv(226, 75%, 63%)
CMYKcmyk(75%, 56.9%, 0%, 37.3%)
CIE-LABlab(32.36, 22.35, -52.52)
CIE-LCHlch(32.36, 57.08, 293.05°)
OKLaboklab(42.51% -0.0093 -0.1514)
OKLCHoklch(42.51% 0.152 266.5)
XYZxyz(9.3461, 7.2444, 34.1566)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845A0 #A08328
analogous
#2881A0 #2845A0 #4728A0
triadic
#2845A0 #A02845 #45A028
tetradic
#2845A0 #A02881 #A08328 #28A047
square
#2845A0 #A02881 #A08328 #28A047
split-complementary
#2845A0 #A04728 #81A028
monochromatic
#101B3E #1C306F #2845A0 #385CCD #6984D9

Accessibility & contrast

On white

8.57
#2845A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2845A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845A0
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845A0#FFFFFF#000000##FFFFFF
##2845A01.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2845a0;
/* rgb */ color: rgb(40, 69, 160);
/* oklch */ color: oklch(42.5% 0.152 266.5);
Tailwind
colors: {
  custom: {
    50: '#7478bd',
    500: '#2845a0',
    950: '#000000',
  },
}
SCSS
$custom: #2845a0;
$custom-light: #7478bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2845a0",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 160
  },
  "hsl": {
    "h": 225.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42513,
    "c": 0.15172,
    "h": 266.5
  },
  "luminance": 0.07245
}

Semantic roles & 50–950 ramp

primary
#2845A0
secondary
#C0AA64
accent
#BD45E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2845A0

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

Preview Lab → · Contrast checker → · Palette generator →

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