#2845AB#2845AB

#2845AB is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.4% C 0.167 H 266.9°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2845AB
RGBrgb(40, 69, 171)
HSLhsl(227, 62%, 41%)
HSVhsv(227, 77%, 67%)
CMYKcmyk(76.6%, 59.6%, 0%, 32.9%)
CIE-LABlab(33.24, 26.55, -57.69)
CIE-LCHlch(33.24, 63.51, 294.71°)
OKLaboklab(43.45% -0.0089 -0.1666)
OKLCHoklch(43.45% 0.167 266.9)
XYZxyz(10.3513, 7.6465, 39.4506)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845AB #AB8E28
analogous
#2887AB #2845AB #4D28AB
triadic
#2845AB #AB2845 #45AB28
tetradic
#2845AB #AB2887 #AB8E28 #28AB4D
square
#2845AB #AB2887 #AB8E28 #28AB4D
split-complementary
#2845AB #AB4D28 #87AB28
monochromatic
#111D48 #1C3179 #2845AB #3E5FD2 #7088DE

Accessibility & contrast

On white

8.30
#2845AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2845AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845AB
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845AB#FFFFFF#000000##FFFFFF
##2845AB1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2845ab;
/* rgb */ color: rgb(40, 69, 171);
/* oklch */ color: oklch(43.4% 0.167 266.9);
Tailwind
colors: {
  custom: {
    50: '#7678c5',
    500: '#2845ab',
    950: '#000000',
  },
}
SCSS
$custom: #2845ab;
$custom-light: #7678c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2845ab",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 226.718,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43446,
    "c": 0.16686,
    "h": 266.9
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#2845AB
secondary
#C4B06A
accent
#C143E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2845AB

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

Preview Lab → · Contrast checker → · Palette generator →

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