#2845B3#2845B3

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

Color values

HEX#2845B3
RGBrgb(40, 69, 179)
HSLhsl(227, 63%, 43%)
HSVhsv(227, 78%, 70%)
CMYKcmyk(77.7%, 61.5%, 0%, 29.8%)
CIE-LABlab(33.90, 29.58, -61.36)
CIE-LCHlch(33.90, 68.12, 295.73°)
OKLaboklab(44.15% -0.0088 -0.1774)
OKLCHoklch(44.15% 0.178 267.1)
XYZxyz(11.1370, 7.9608, 43.5887)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845B3 #B39628
analogous
#288AB3 #2845B3 #5028B3
triadic
#2845B3 #B32845 #45B328
tetradic
#2845B3 #B3288A #B39628 #28B350
square
#2845B3 #B3288A #B39628 #28B350
split-complementary
#2845B3 #B35028 #8AB328
monochromatic
#121E4F #1D3281 #2845B3 #4362D5 #758CE0

Accessibility & contrast

On white

8.10
#2845B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2845B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845B3
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845B3#FFFFFF#000000##FFFFFF
##2845B31.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2845b3;
/* rgb */ color: rgb(40, 69, 179);
/* oklch */ color: oklch(44.1% 0.178 267.1);
Tailwind
colors: {
  custom: {
    50: '#7878cb',
    500: '#2845b3',
    950: '#000000',
  },
}
SCSS
$custom: #2845b3;
$custom-light: #7878cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2845b3",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 227.482,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44148,
    "c": 0.17762,
    "h": 267.1
  },
  "luminance": 0.07962
}

Semantic roles & 50–950 ramp

primary
#2845B3
secondary
#C8B56F
accent
#C441E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2845B3

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

Preview Lab → · Contrast checker → · Palette generator →

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