#3042A4#3042A4

#3042A4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.159 H 270.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#3042A4
RGBrgb(48, 66, 164)
HSLhsl(231, 55%, 42%)
HSVhsv(231, 71%, 64%)
CMYKcmyk(70.7%, 59.8%, 0%, 35.7%)
CIE-LABlab(32.27, 26.93, -55.06)
CIE-LCHlch(32.27, 61.29, 296.07°)
OKLaboklab(42.65% 0.0008 -0.1588)
OKLCHoklch(42.65% 0.159 270.3)
XYZxyz(9.8657, 7.2042, 35.9854)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042A4 #A49230
analogous
#307CA4 #3042A4 #5830A4
triadic
#3042A4 #A43042 #42A430
tetradic
#3042A4 #A4307C #A49230 #30A458
square
#3042A4 #A4307C #A49230 #30A458
split-complementary
#3042A4 #A45830 #7CA430
monochromatic
#141C45 #222F75 #3042A4 #485CC9 #7786D7

Accessibility & contrast

On white

8.60
#3042A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3042A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042A4
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042A4#FFFFFF#000000##FFFFFF
##3042A41.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3042a4;
/* rgb */ color: rgb(48, 66, 164);
/* oklch */ color: oklch(42.7% 0.159 270.3);
Tailwind
colors: {
  custom: {
    50: '#7876c0',
    500: '#3042a4',
    950: '#000000',
  },
}
SCSS
$custom: #3042a4;
$custom-light: #7876c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3042a4",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 230.69,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42653,
    "c": 0.15876,
    "h": 270.3
  },
  "luminance": 0.07205
}

Semantic roles & 50–950 ramp

primary
#3042A4
secondary
#BFB370
accent
#C74ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3042A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3042A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva