#2945A4#2945A4

#2945A4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.157 H 267.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2945A4
RGBrgb(41, 69, 164)
HSLhsl(226, 60%, 40%)
HSVhsv(226, 75%, 64%)
CMYKcmyk(75%, 57.9%, 0%, 35.7%)
CIE-LABlab(32.72, 24.01, -54.34)
CIE-LCHlch(32.72, 59.41, 293.83°)
OKLaboklab(42.89% -0.0083 -0.1568)
OKLCHoklch(42.89% 0.157 267)
XYZxyz(9.7411, 7.4069, 36.0311)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2945A4 #A48829
analogous
#2983A4 #2945A4 #4A29A4
triadic
#2945A4 #A42945 #45A429
tetradic
#2945A4 #A42983 #A48829 #29A44A
square
#2945A4 #A42983 #A48829 #29A44A
split-complementary
#2945A4 #A44A29 #83A429
monochromatic
#111C42 #1D3073 #2945A4 #3C5DCE #6D86DA

Accessibility & contrast

On white

8.46
#2945A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2945A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2945A4
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2945A4#FFFFFF#000000##FFFFFF
##2945A41.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#005D6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2945a4;
/* rgb */ color: rgb(41, 69, 164);
/* oklch */ color: oklch(42.9% 0.157 267.0);
Tailwind
colors: {
  custom: {
    50: '#7578c0',
    500: '#2945a4',
    950: '#000000',
  },
}
SCSS
$custom: #2945a4;
$custom-light: #7578c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2945a4",
  "rgb": {
    "r": 41,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 226.341,
    "s": 60,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42893,
    "c": 0.15698,
    "h": 267
  },
  "luminance": 0.07408
}

Semantic roles & 50–950 ramp

primary
#2945A4
secondary
#C1AD68
accent
#BF45E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2945A4

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

Preview Lab → · Contrast checker → · Palette generator →

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