#2845B0#2845B0

#2845B0 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.174 H 267.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#2845B0
RGBrgb(40, 69, 176)
HSLhsl(227, 63%, 42%)
HSVhsv(227, 77%, 69%)
CMYKcmyk(77.3%, 60.8%, 0%, 31%)
CIE-LABlab(33.65, 28.45, -60.00)
CIE-LCHlch(33.65, 66.40, 295.37°)
OKLaboklab(43.88% -0.0088 -0.1734)
OKLCHoklch(43.88% 0.174 267.1)
XYZxyz(10.8369, 7.8407, 42.0081)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845B0 #B09328
analogous
#2889B0 #2845B0 #4F28B0
triadic
#2845B0 #B02845 #45B028
tetradic
#2845B0 #B02889 #B09328 #28B04F
square
#2845B0 #B02889 #B09328 #28B04F
split-complementary
#2845B0 #B04F28 #89B028
monochromatic
#111E4C #1D317E #2845B0 #4161D4 #738ADF

Accessibility & contrast

On white

8.18
#2845B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2845B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2845B0#FFFFFF#000000##FFFFFF
##2845B01.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B4
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2845b0;
/* rgb */ color: rgb(40, 69, 176);
/* oklch */ color: oklch(43.9% 0.174 267.1);
Tailwind
colors: {
  custom: {
    50: '#7778c8',
    500: '#2845b0',
    950: '#000000',
  },
}
SCSS
$custom: #2845b0;
$custom-light: #7778c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2845b0",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 176
  },
  "hsl": {
    "h": 227.206,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43883,
    "c": 0.17361,
    "h": 267.1
  },
  "luminance": 0.07842
}

Semantic roles & 50–950 ramp

primary
#2845B0
secondary
#C6B36D
accent
#C342E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2845B0

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

Preview Lab → · Contrast checker → · Palette generator →

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