#2845A8#2845A8

#2845A8 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.2% C 0.163 H 266.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2845A8
RGBrgb(40, 69, 168)
HSLhsl(226, 62%, 41%)
HSVhsv(226, 76%, 66%)
CMYKcmyk(76.2%, 58.9%, 0%, 34.1%)
CIE-LABlab(32.99, 25.41, -56.30)
CIE-LCHlch(32.99, 61.76, 294.29°)
OKLaboklab(43.19% -0.009 -0.1625)
OKLCHoklch(43.19% 0.163 266.8)
XYZxyz(10.0686, 7.5334, 37.9616)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845A8 #A88B28
analogous
#2885A8 #2845A8 #4B28A8
triadic
#2845A8 #A82845 #45A828
tetradic
#2845A8 #A82885 #A88B28 #28A84B
square
#2845A8 #A82885 #A88B28 #28A84B
split-complementary
#2845A8 #A84B28 #85A828
monochromatic
#101C45 #1C3177 #2845A8 #3D5ED1 #6E87DC

Accessibility & contrast

On white

8.38
#2845A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2845A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845A8
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845A8#FFFFFF#000000##FFFFFF
##2845A81.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2845a8;
/* rgb */ color: rgb(40, 69, 168);
/* oklch */ color: oklch(43.2% 0.163 266.8);
Tailwind
colors: {
  custom: {
    50: '#7578c3',
    500: '#2845a8',
    950: '#000000',
  },
}
SCSS
$custom: #2845a8;
$custom-light: #7578c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2845a8",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 226.406,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43188,
    "c": 0.16277,
    "h": 266.8
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

primary
#2845A8
secondary
#C3AF69
accent
#C043E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2845A8

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

Preview Lab → · Contrast checker → · Palette generator →

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