#2845A3#2845A3

#2845A3 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.8% C 0.156 H 266.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2845A3
RGBrgb(40, 69, 163)
HSLhsl(226, 61%, 40%)
HSVhsv(226, 75%, 64%)
CMYKcmyk(75.5%, 57.7%, 0%, 36.1%)
CIE-LABlab(32.59, 23.50, -53.95)
CIE-LCHlch(32.59, 58.84, 293.54°)
OKLaboklab(42.76% -0.0092 -0.1556)
OKLCHoklch(42.76% 0.156 266.6)
XYZxyz(9.6117, 7.3507, 35.5555)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845A3 #A38628
analogous
#2882A3 #2845A3 #4928A3
triadic
#2845A3 #A32845 #45A328
tetradic
#2845A3 #A32882 #A38628 #28A349
square
#2845A3 #A32882 #A38628 #28A349
split-complementary
#2845A3 #A34928 #82A328
monochromatic
#101B41 #1C3072 #2845A3 #3A5DCF #6B85DB

Accessibility & contrast

On white

8.50
#2845A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2845A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845A3
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845A3#FFFFFF#000000##FFFFFF
##2845A31.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#005C6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2845a3;
/* rgb */ color: rgb(40, 69, 163);
/* oklch */ color: oklch(42.8% 0.156 266.6);
Tailwind
colors: {
  custom: {
    50: '#7478bf',
    500: '#2845a3',
    950: '#000000',
  },
}
SCSS
$custom: #2845a3;
$custom-light: #7478bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2845a3",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 163
  },
  "hsl": {
    "h": 225.854,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42764,
    "c": 0.15588,
    "h": 266.6
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#2845A3
secondary
#C1AC66
accent
#BE44E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2845A3

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

Preview Lab → · Contrast checker → · Palette generator →

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