#2845AA#2845AA

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

Color values

HEX#2845AA
RGBrgb(40, 69, 170)
HSLhsl(227, 62%, 41%)
HSVhsv(227, 76%, 67%)
CMYKcmyk(76.5%, 59.4%, 0%, 33.3%)
CIE-LABlab(33.15, 26.17, -57.23)
CIE-LCHlch(33.15, 62.93, 294.58°)
OKLaboklab(43.36% -0.0089 -0.1653)
OKLCHoklch(43.36% 0.166 266.9)
XYZxyz(10.2564, 7.6085, 38.9505)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845AA #AA8D28
analogous
#2886AA #2845AA #4C28AA
triadic
#2845AA #AA2845 #45AA28
tetradic
#2845AA #AA2886 #AA8D28 #28AA4C
square
#2845AA #AA2886 #AA8D28 #28AA4C
split-complementary
#2845AA #AA4C28 #86AA28
monochromatic
#111D47 #1C3178 #2845AA #3E5FD2 #6F88DD

Accessibility & contrast

On white

8.33
#2845AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2845AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2845AA#FFFFFF#000000##FFFFFF
##2845AA1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2845aa;
/* rgb */ color: rgb(40, 69, 170);
/* oklch */ color: oklch(43.4% 0.166 266.9);
Tailwind
colors: {
  custom: {
    50: '#7678c4',
    500: '#2845aa',
    950: '#000000',
  },
}
SCSS
$custom: #2845aa;
$custom-light: #7678c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2845aa",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 226.615,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4336,
    "c": 0.1655,
    "h": 266.9
  },
  "luminance": 0.0761
}

Semantic roles & 50–950 ramp

primary
#2845AA
secondary
#C4B06A
accent
#C143E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2845AA

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

Preview Lab → · Contrast checker → · Palette generator →

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