#2845AC#2845AC

#2845AC is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.168 H 267.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2845AC
RGBrgb(40, 69, 172)
HSLhsl(227, 62%, 42%)
HSVhsv(227, 77%, 67%)
CMYKcmyk(76.7%, 59.9%, 0%, 32.5%)
CIE-LABlab(33.32, 26.93, -58.15)
CIE-LCHlch(33.32, 64.09, 294.85°)
OKLaboklab(43.53% -0.0089 -0.168)
OKLCHoklch(43.53% 0.168 267)
XYZxyz(10.4470, 7.6848, 39.9544)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845AC #AC8F28
analogous
#2887AC #2845AC #4D28AC
triadic
#2845AC #AC2845 #45AC28
tetradic
#2845AC #AC2887 #AC8F28 #28AC4D
square
#2845AC #AC2887 #AC8F28 #28AC4D
split-complementary
#2845AC #AC4D28 #87AC28
monochromatic
#111D49 #1C317A #2845AC #3F5FD2 #7189DE

Accessibility & contrast

On white

8.28
#2845AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2845AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2845AC#FFFFFF#000000##FFFFFF
##2845AC1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2845ac;
/* rgb */ color: rgb(40, 69, 172);
/* oklch */ color: oklch(43.5% 0.168 267.0);
Tailwind
colors: {
  custom: {
    50: '#7678c6',
    500: '#2845ac',
    950: '#000000',
  },
}
SCSS
$custom: #2845ac;
$custom-light: #7678c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2845ac",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 226.818,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43533,
    "c": 0.16822,
    "h": 267
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#2845AC
secondary
#C5B16B
accent
#C242E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2845AC

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

Preview Lab → · Contrast checker → · Palette generator →

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