#2846AF#2846AF

#2846AF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.0% C 0.171 H 266.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2846AF
RGBrgb(40, 70, 175)
HSLhsl(227, 63%, 42%)
HSVhsv(227, 77%, 69%)
CMYKcmyk(77.1%, 60%, 0%, 31.4%)
CIE-LABlab(33.83, 27.41, -59.11)
CIE-LCHlch(33.83, 65.16, 294.88°)
OKLaboklab(43.99% -0.0095 -0.1708)
OKLCHoklch(43.99% 0.171 266.8)
XYZxyz(10.8004, 7.9254, 41.5097)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2846AF #AF9128
analogous
#2889AF #2846AF #4E28AF
triadic
#2846AF #AF2846 #46AF28
tetradic
#2846AF #AF2889 #AF9128 #28AF4E
square
#2846AF #AF2889 #AF9128 #28AF4E
split-complementary
#2846AF #AF4E28 #89AF28
monochromatic
#111E4B #1D327D #2846AF #4161D4 #738BDF

Accessibility & contrast

On white

8.12
#2846AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2846AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2846AF
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2846AF#FFFFFF#000000##FFFFFF
##2846AF1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#006173
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2846af;
/* rgb */ color: rgb(40, 70, 175);
/* oklch */ color: oklch(44.0% 0.171 266.8);
Tailwind
colors: {
  custom: {
    50: '#7779c8',
    500: '#2846af',
    950: '#000000',
  },
}
SCSS
$custom: #2846af;
$custom-light: #7779c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2846af",
  "rgb": {
    "r": 40,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 226.667,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4399,
    "c": 0.17104,
    "h": 266.8
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#2846AF
secondary
#C6B26D
accent
#C142E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2846AF

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

Preview Lab → · Contrast checker → · Palette generator →

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