#2845AE#2845AE

#2845AE is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.171 H 267.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#2845AE
RGBrgb(40, 69, 174)
HSLhsl(227, 63%, 42%)
HSVhsv(227, 77%, 68%)
CMYKcmyk(77%, 60.3%, 0%, 31.8%)
CIE-LABlab(33.48, 27.69, -59.08)
CIE-LCHlch(33.48, 65.25, 295.11°)
OKLaboklab(43.71% -0.0089 -0.1707)
OKLCHoklch(43.71% 0.171 267)
XYZxyz(10.6405, 7.7622, 40.9737)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845AE #AE9128
analogous
#2888AE #2845AE #4E28AE
triadic
#2845AE #AE2845 #45AE28
tetradic
#2845AE #AE2888 #AE9128 #28AE4E
square
#2845AE #AE2888 #AE9128 #28AE4E
split-complementary
#2845AE #AE4E28 #88AE28
monochromatic
#111E4A #1D317C #2845AE #4060D3 #7289DF

Accessibility & contrast

On white

8.23
#2845AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2845AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2845AE#FFFFFF#000000##FFFFFF
##2845AE1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2845ae;
/* rgb */ color: rgb(40, 69, 174);
/* oklch */ color: oklch(43.7% 0.171 267.0);
Tailwind
colors: {
  custom: {
    50: '#7778c7',
    500: '#2845ae',
    950: '#000000',
  },
}
SCSS
$custom: #2845ae;
$custom-light: #7778c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2845ae",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 227.015,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43707,
    "c": 0.17092,
    "h": 267
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#2845AE
secondary
#C6B26C
accent
#C242E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2845AE

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

Preview Lab → · Contrast checker → · Palette generator →

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