#2945A2#2945A2

#2945A2 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.7% C 0.154 H 266.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2945A2
RGBrgb(41, 69, 162)
HSLhsl(226, 60%, 40%)
HSVhsv(226, 75%, 64%)
CMYKcmyk(74.7%, 57.4%, 0%, 36.5%)
CIE-LABlab(32.56, 23.24, -53.40)
CIE-LCHlch(32.56, 58.23, 293.52°)
OKLaboklab(42.73% -0.0084 -0.154)
OKLCHoklch(42.73% 0.154 266.9)
XYZxyz(9.5619, 7.3353, 35.0873)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2945A2 #A28629
analogous
#2981A2 #2945A2 #4A29A2
triadic
#2945A2 #A22945 #45A229
tetradic
#2945A2 #A22981 #A28629 #29A24A
square
#2945A2 #A22981 #A28629 #29A24A
split-complementary
#2945A2 #A24A29 #81A229
monochromatic
#101B40 #1D3071 #2945A2 #3B5DCD #6C85DA

Accessibility & contrast

On white

8.51
#2945A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2945A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2945A2
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2945A2#FFFFFF#000000##FFFFFF
##2945A21.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2945a2;
/* rgb */ color: rgb(41, 69, 162);
/* oklch */ color: oklch(42.7% 0.154 266.9);
Tailwind
colors: {
  custom: {
    50: '#7478be',
    500: '#2945a2',
    950: '#000000',
  },
}
SCSS
$custom: #2945a2;
$custom-light: #7478be;
$custom-dark: #000000;
JSON
{
  "hex": "#2945a2",
  "rgb": {
    "r": 41,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 226.116,
    "s": 59.606,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42726,
    "c": 0.15421,
    "h": 266.9
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#2945A2
secondary
#C0AC67
accent
#BE45E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2945A2

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

Preview Lab → · Contrast checker → · Palette generator →

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