#2945AB#2945AB

#2945AB is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.5% C 0.167 H 267.2°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#2945AB
RGBrgb(41, 69, 171)
HSLhsl(227, 61%, 42%)
HSVhsv(227, 76%, 67%)
CMYKcmyk(76%, 59.6%, 0%, 32.9%)
CIE-LABlab(33.28, 26.67, -57.62)
CIE-LCHlch(33.28, 63.49, 294.84°)
OKLaboklab(43.49% -0.008 -0.1664)
OKLCHoklch(43.49% 0.167 267.2)
XYZxyz(10.3907, 7.6668, 39.4524)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2945AB #AB8F29
analogous
#2986AB #2945AB #4E29AB
triadic
#2945AB #AB2945 #45AB29
tetradic
#2945AB #AB2986 #AB8F29 #29AB4E
square
#2945AB #AB2986 #AB8F29 #29AB4E
split-complementary
#2945AB #AB4E29 #86AB29
monochromatic
#111D48 #1D317A #2945AB #405FD1 #7189DD

Accessibility & contrast

On white

8.29
#2945AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2945AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2945AB
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2945AB#FFFFFF#000000##FFFFFF
##2945AB1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005F71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2945ab;
/* rgb */ color: rgb(41, 69, 171);
/* oklch */ color: oklch(43.5% 0.167 267.2);
Tailwind
colors: {
  custom: {
    50: '#7778c5',
    500: '#2945ab',
    950: '#000000',
  },
}
SCSS
$custom: #2945ab;
$custom-light: #7778c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2945ab",
  "rgb": {
    "r": 41,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 227.077,
    "s": 61.321,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43491,
    "c": 0.16658,
    "h": 267.2
  },
  "luminance": 0.07668
}

Semantic roles & 50–950 ramp

primary
#2945AB
secondary
#C4B16C
accent
#C243E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2945AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2945AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva