#3040A2#3040A2

#3040A2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.159 H 270.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#3040A2
RGBrgb(48, 64, 162)
HSLhsl(232, 54%, 41%)
HSVhsv(232, 70%, 64%)
CMYKcmyk(70.4%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.58, 27.52, -54.97)
CIE-LCHlch(31.58, 61.47, 296.59°)
OKLaboklab(42.1% 0.0024 -0.1585)
OKLCHoklch(42.1% 0.159 270.9)
XYZxyz(9.5717, 6.9029, 35.0034)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040A2 #A29230
analogous
#3079A2 #3040A2 #5930A2
triadic
#3040A2 #A23040 #40A230
tetradic
#3040A2 #A23079 #A29230 #30A259
square
#3040A2 #A23079 #A29230 #30A259
split-complementary
#3040A2 #A25930 #79A230
monochromatic
#141B44 #222D73 #3040A2 #4759C8 #7684D6

Accessibility & contrast

On white

8.82
#3040A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3040A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040A2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040A2#FFFFFF#000000##FFFFFF
##3040A21.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3040a2;
/* rgb */ color: rgb(48, 64, 162);
/* oklch */ color: oklch(42.1% 0.159 270.9);
Tailwind
colors: {
  custom: {
    50: '#7774be',
    500: '#3040a2',
    950: '#000000',
  },
}
SCSS
$custom: #3040a2;
$custom-light: #7774be;
$custom-dark: #000000;
JSON
{
  "hex": "#3040a2",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 231.579,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42095,
    "c": 0.15853,
    "h": 270.9
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#3040A2
secondary
#BEB36F
accent
#C94ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3040A2

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

Preview Lab → · Contrast checker → · Palette generator →

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