#2841AF#2841AF

#2841AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.177 H 268.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2841AF
RGBrgb(40, 65, 175)
HSLhsl(229, 63%, 42%)
HSVhsv(229, 77%, 69%)
CMYKcmyk(77.1%, 62.9%, 0%, 31.4%)
CIE-LABlab(32.54, 30.70, -61.22)
CIE-LCHlch(32.54, 68.49, 296.64°)
OKLaboklab(43.03% -0.0063 -0.177)
OKLCHoklch(43.03% 0.177 268)
XYZxyz(10.5005, 7.3257, 41.4097)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841AF #AF9628
analogous
#2885AF #2841AF #5328AF
triadic
#2841AF #AF2841 #41AF28
tetradic
#2841AF #AF2885 #AF9628 #28AF53
square
#2841AF #AF2885 #AF9628 #28AF53
split-complementary
#2841AF #AF5328 #85AF28
monochromatic
#111C4B #1D2E7D #2841AF #415CD4 #7387DF

Accessibility & contrast

On white

8.52
#2841AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2841AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841AF
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841AF#FFFFFF#000000##FFFFFF
##2841AF1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2841af;
/* rgb */ color: rgb(40, 65, 175);
/* oklch */ color: oklch(43.0% 0.177 268.0);
Tailwind
colors: {
  custom: {
    50: '#7775c8',
    500: '#2841af',
    950: '#000000',
  },
}
SCSS
$custom: #2841af;
$custom-light: #7775c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2841af",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 228.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43032,
    "c": 0.17712,
    "h": 268
  },
  "luminance": 0.07327
}

Semantic roles & 50–950 ramp

primary
#2841AF
secondary
#C6B66D
accent
#C742E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2841AF

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

Preview Lab → · Contrast checker → · Palette generator →

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