#3042A3#3042A3

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

Color values

HEX#3042A3
RGBrgb(48, 66, 163)
HSLhsl(231, 55%, 41%)
HSVhsv(231, 71%, 64%)
CMYKcmyk(70.6%, 59.5%, 0%, 36.1%)
CIE-LABlab(32.19, 26.56, -54.59)
CIE-LCHlch(32.19, 60.71, 295.95°)
OKLaboklab(42.57% 0.0008 -0.1574)
OKLCHoklch(42.57% 0.157 270.3)
XYZxyz(9.7757, 7.1682, 35.5116)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042A3 #A39130
analogous
#307CA3 #3042A3 #5830A3
triadic
#3042A3 #A33042 #42A330
tetradic
#3042A3 #A3307C #A39130 #30A358
square
#3042A3 #A3307C #A39130 #30A358
split-complementary
#3042A3 #A35830 #7CA330
monochromatic
#141C44 #222F74 #3042A3 #475CC9 #7786D7

Accessibility & contrast

On white

8.63
#3042A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3042A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042A3
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042A3#FFFFFF#000000##FFFFFF
##3042A31.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3042a3;
/* rgb */ color: rgb(48, 66, 163);
/* oklch */ color: oklch(42.6% 0.157 270.3);
Tailwind
colors: {
  custom: {
    50: '#7876bf',
    500: '#3042a3',
    950: '#000000',
  },
}
SCSS
$custom: #3042a3;
$custom-light: #7876bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3042a3",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 230.609,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.15737,
    "h": 270.3
  },
  "luminance": 0.07169
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3042A3

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

Preview Lab → · Contrast checker → · Palette generator →

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