#2940B0#2940B0

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

Color values

HEX#2940B0
RGBrgb(41, 64, 176)
HSLhsl(230, 62%, 43%)
HSVhsv(230, 77%, 69%)
CMYKcmyk(76.7%, 63.6%, 0%, 31%)
CIE-LABlab(32.42, 31.84, -62.01)
CIE-LCHlch(32.42, 69.70, 297.18°)
OKLaboklab(42.98% -0.0048 -0.1793)
OKLCHoklch(42.98% 0.179 268.5)
XYZxyz(10.5816, 7.2716, 41.9118)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2940B0 #B09929
analogous
#2983B0 #2940B0 #5629B0
triadic
#2940B0 #B02940 #40B029
tetradic
#2940B0 #B02983 #B09929 #29B056
square
#2940B0 #B02983 #B09929 #29B056
split-complementary
#2940B0 #B05629 #83B029
monochromatic
#121C4D #1D2E7E #2940B0 #435CD3 #7587DF

Accessibility & contrast

On white

8.56
#2940B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2940B0
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2940B0#FFFFFF#000000##FFFFFF
##2940B01.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2940b0;
/* rgb */ color: rgb(41, 64, 176);
/* oklch */ color: oklch(43.0% 0.179 268.5);
Tailwind
colors: {
  custom: {
    50: '#7874c9',
    500: '#2940b0',
    950: '#000000',
  },
}
SCSS
$custom: #2940b0;
$custom-light: #7874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2940b0",
  "rgb": {
    "r": 41,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 229.778,
    "s": 62.212,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42983,
    "c": 0.17938,
    "h": 268.5
  },
  "luminance": 0.07273
}

Semantic roles & 50–950 ramp

primary
#2940B0
secondary
#C6B76F
accent
#CA43E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2940B0

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

Preview Lab → · Contrast checker → · Palette generator →

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