#2845B4#2845B4

#2845B4 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.179 H 267.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#2845B4
RGBrgb(40, 69, 180)
HSLhsl(228, 64%, 43%)
HSVhsv(228, 78%, 71%)
CMYKcmyk(77.8%, 61.7%, 0%, 29.4%)
CIE-LABlab(33.99, 29.95, -61.82)
CIE-LCHlch(33.99, 68.69, 295.85°)
OKLaboklab(44.24% -0.0088 -0.1787)
OKLCHoklch(44.24% 0.179 267.2)
XYZxyz(11.2385, 8.0014, 44.1233)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845B4 #B49728
analogous
#288BB4 #2845B4 #5128B4
triadic
#2845B4 #B42845 #45B428
tetradic
#2845B4 #B4288B #B49728 #28B451
square
#2845B4 #B4288B #B49728 #28B451
split-complementary
#2845B4 #B45128 #8BB428
monochromatic
#121F50 #1D3282 #2845B4 #4462D5 #768CE1

Accessibility & contrast

On white

8.08
#2845B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2845B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2845B4#FFFFFF#000000##FFFFFF
##2845B41.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2845b4;
/* rgb */ color: rgb(40, 69, 180);
/* oklch */ color: oklch(44.2% 0.179 267.2);
Tailwind
colors: {
  custom: {
    50: '#7878cb',
    500: '#2845b4',
    950: '#000000',
  },
}
SCSS
$custom: #2845b4;
$custom-light: #7878cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2845b4",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 227.571,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44237,
    "c": 0.17895,
    "h": 267.2
  },
  "luminance": 0.08003
}

Semantic roles & 50–950 ramp

primary
#2845B4
secondary
#C8B670
accent
#C441E7
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2845B4

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

Preview Lab → · Contrast checker → · Palette generator →

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