#2940B1#2940B1

#2940B1 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.181 H 268.5°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2940B1
RGBrgb(41, 64, 177)
HSLhsl(230, 62%, 43%)
HSVhsv(230, 77%, 69%)
CMYKcmyk(76.8%, 63.8%, 0%, 30.6%)
CIE-LABlab(32.51, 32.21, -62.46)
CIE-LCHlch(32.51, 70.27, 297.28°)
OKLaboklab(43.08% -0.0048 -0.1806)
OKLCHoklch(43.08% 0.181 268.5)
XYZxyz(10.6809, 7.3114, 42.4348)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940B1 #B19A29
analogous
#2984B1 #2940B1 #5629B1
triadic
#2940B1 #B12940 #40B129
tetradic
#2940B1 #B12984 #B19A29 #29B156
square
#2940B1 #B12984 #B19A29 #29B156
split-complementary
#2940B1 #B15629 #84B129
monochromatic
#121C4E #1D2E7F #2940B1 #445CD4 #7587DF

Accessibility & contrast

On white

8.53
#2940B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2940B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2940B1
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940B1#FFFFFF#000000##FFFFFF
##2940B11.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2940b1;
/* rgb */ color: rgb(41, 64, 177);
/* oklch */ color: oklch(43.1% 0.181 268.5);
Tailwind
colors: {
  custom: {
    50: '#7874c9',
    500: '#2940b1',
    950: '#000000',
  },
}
SCSS
$custom: #2940b1;
$custom-light: #7874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2940b1",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 229.853,
    "s": 62.385,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43075,
    "c": 0.1807,
    "h": 268.5
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#2940B1
secondary
#C7B86F
accent
#CA42E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2940B1

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

Preview Lab → · Contrast checker → · Palette generator →

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