#2845AF#2845AF

#2845AF is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.172 H 267.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2845AF
RGBrgb(40, 69, 175)
HSLhsl(227, 63%, 42%)
HSVhsv(227, 77%, 69%)
CMYKcmyk(77.1%, 60.6%, 0%, 31.4%)
CIE-LABlab(33.57, 28.07, -59.54)
CIE-LCHlch(33.57, 65.82, 295.24°)
OKLaboklab(43.8% -0.0089 -0.172)
OKLCHoklch(43.8% 0.172 267.1)
XYZxyz(10.7384, 7.8013, 41.4890)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2845AF #AF9228
analogous
#2889AF #2845AF #4E28AF
triadic
#2845AF #AF2845 #45AF28
tetradic
#2845AF #AF2889 #AF9228 #28AF4E
square
#2845AF #AF2889 #AF9228 #28AF4E
split-complementary
#2845AF #AF4E28 #89AF28
monochromatic
#111E4B #1D317D #2845AF #4160D4 #738ADF

Accessibility & contrast

On white

8.20
#2845AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2845AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2845AF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2845AF#FFFFFF#000000##FFFFFF
##2845AF1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2845af;
/* rgb */ color: rgb(40, 69, 175);
/* oklch */ color: oklch(43.8% 0.172 267.1);
Tailwind
colors: {
  custom: {
    50: '#7778c8',
    500: '#2845af',
    950: '#000000',
  },
}
SCSS
$custom: #2845af;
$custom-light: #7778c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2845af",
  "rgb": {
    "r": 40,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 227.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43795,
    "c": 0.17227,
    "h": 267.1
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#2845AF
secondary
#C6B36D
accent
#C342E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2845AF

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

Preview Lab → · Contrast checker → · Palette generator →

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