#2940AF#2940AF

#2940AF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.178 H 268.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2940AF
RGBrgb(41, 64, 175)
HSLhsl(230, 62%, 42%)
HSVhsv(230, 77%, 69%)
CMYKcmyk(76.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.33, 31.47, -61.56)
CIE-LCHlch(32.33, 69.13, 297.07°)
OKLaboklab(42.89% -0.0047 -0.178)
OKLCHoklch(42.89% 0.178 268.5)
XYZxyz(10.4830, 7.2322, 41.3926)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940AF #AF9829
analogous
#2983AF #2940AF #5529AF
triadic
#2940AF #AF2940 #40AF29
tetradic
#2940AF #AF2983 #AF9829 #29AF55
square
#2940AF #AF2983 #AF9829 #29AF55
split-complementary
#2940AF #AF5529 #83AF29
monochromatic
#121C4C #1D2E7D #2940AF #425BD3 #7486DE

Accessibility & contrast

On white

8.58
#2940AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2940AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940AF
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940AF#FFFFFF#000000##FFFFFF
##2940AF1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2940af;
/* rgb */ color: rgb(41, 64, 175);
/* oklch */ color: oklch(42.9% 0.178 268.5);
Tailwind
colors: {
  custom: {
    50: '#7874c8',
    500: '#2940af',
    950: '#000000',
  },
}
SCSS
$custom: #2940af;
$custom-light: #7874c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2940af",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 229.701,
    "s": 62.037,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42891,
    "c": 0.17805,
    "h": 268.5
  },
  "luminance": 0.07233
}

Semantic roles & 50–950 ramp

primary
#2940AF
secondary
#C6B76E
accent
#C943E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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