#2845B2#2845B2

#2845B2 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.1% C 0.176 H 267.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2845B2
RGBrgb(40, 69, 178)
HSLhsl(227, 63%, 43%)
HSVhsv(227, 78%, 70%)
CMYKcmyk(77.5%, 61.2%, 0%, 30.2%)
CIE-LABlab(33.82, 29.20, -60.91)
CIE-LCHlch(33.82, 67.55, 295.61°)
OKLaboklab(44.06% -0.0088 -0.1761)
OKLCHoklch(44.06% 0.176 267.1)
XYZxyz(11.0363, 7.9205, 43.0580)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845B2 #B29528
analogous
#288AB2 #2845B2 #5028B2
triadic
#2845B2 #B22845 #45B228
tetradic
#2845B2 #B2288A #B29528 #28B250
square
#2845B2 #B2288A #B29528 #28B250
split-complementary
#2845B2 #B25028 #8AB228
monochromatic
#121E4E #1D3280 #2845B2 #4361D5 #758BE0

Accessibility & contrast

On white

8.13
#2845B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2845B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2845B2#FFFFFF#000000##FFFFFF
##2845B21.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2845b2;
/* rgb */ color: rgb(40, 69, 178);
/* oklch */ color: oklch(44.1% 0.176 267.1);
Tailwind
colors: {
  custom: {
    50: '#7878ca',
    500: '#2845b2',
    950: '#000000',
  },
}
SCSS
$custom: #2845b2;
$custom-light: #7878ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2845b2",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 227.391,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4406,
    "c": 0.17628,
    "h": 267.1
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#2845B2
secondary
#C7B56F
accent
#C441E6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2845B2

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

Preview Lab → · Contrast checker → · Palette generator →

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