#2945B4#2945B4

#2945B4 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.3% C 0.179 H 267.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2945B4
RGBrgb(41, 69, 180)
HSLhsl(228, 63%, 43%)
HSVhsv(228, 77%, 71%)
CMYKcmyk(77.2%, 61.7%, 0%, 29.4%)
CIE-LABlab(34.03, 30.06, -61.75)
CIE-LCHlch(34.03, 68.68, 295.96°)
OKLaboklab(44.28% -0.008 -0.1785)
OKLCHoklch(44.28% 0.179 267.4)
XYZxyz(11.2779, 8.0217, 44.1251)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2945B4 #B49829
analogous
#298AB4 #2945B4 #5329B4
triadic
#2945B4 #B42945 #45B429
tetradic
#2945B4 #B4298A #B49829 #29B453
square
#2945B4 #B4298A #B49829 #29B453
split-complementary
#2945B4 #B45329 #8AB429
monochromatic
#121F50 #1E3282 #2945B4 #4562D5 #778CE0

Accessibility & contrast

On white

8.06
#2945B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2945B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2945B4
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2945B4#FFFFFF#000000##FFFFFF
##2945B41.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2945b4;
/* rgb */ color: rgb(41, 69, 180);
/* oklch */ color: oklch(44.3% 0.179 267.4);
Tailwind
colors: {
  custom: {
    50: '#7978cb',
    500: '#2945b4',
    950: '#000000',
  },
}
SCSS
$custom: #2945b4;
$custom-light: #7978cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2945b4",
  "rgb": {
    "r": 41,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 227.914,
    "s": 62.896,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44281,
    "c": 0.17868,
    "h": 267.4
  },
  "luminance": 0.08023
}

Semantic roles & 50–950 ramp

primary
#2945B4
secondary
#C8B671
accent
#C542E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2945B4

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

Preview Lab → · Contrast checker → · Palette generator →

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