#2845A2#2845A2

#2845A2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.7% C 0.154 H 266.6°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2845A2
RGBrgb(40, 69, 162)
HSLhsl(226, 60%, 40%)
HSVhsv(226, 75%, 64%)
CMYKcmyk(75.3%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.51, 23.11, -53.47)
CIE-LCHlch(32.51, 58.25, 293.38°)
OKLaboklab(42.68% -0.0092 -0.1542)
OKLCHoklch(42.68% 0.155 266.6)
XYZxyz(9.5225, 7.3150, 35.0855)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845A2 #A28528
analogous
#2882A2 #2845A2 #4828A2
triadic
#2845A2 #A22845 #45A228
tetradic
#2845A2 #A22882 #A28528 #28A248
square
#2845A2 #A22882 #A28528 #28A248
split-complementary
#2845A2 #A24828 #82A228
monochromatic
#101B40 #1C3071 #2845A2 #395DCE #6A85DA

Accessibility & contrast

On white

8.53
#2845A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2845A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845A2
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845A2#FFFFFF#000000##FFFFFF
##2845A21.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2845a2;
/* rgb */ color: rgb(40, 69, 162);
/* oklch */ color: oklch(42.7% 0.154 266.6);
Tailwind
colors: {
  custom: {
    50: '#7478be',
    500: '#2845a2',
    950: '#000000',
  },
}
SCSS
$custom: #2845a2;
$custom-light: #7478be;
$custom-dark: #000000;
JSON
{
  "hex": "#2845a2",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 225.738,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4268,
    "c": 0.1545,
    "h": 266.6
  },
  "luminance": 0.07316
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2845A2

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

Preview Lab → · Contrast checker → · Palette generator →

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