#3042AD#3042AD

#3042AD is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.171 H 270.2°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#3042AD
RGBrgb(48, 66, 173)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 72%, 68%)
CMYKcmyk(72.3%, 61.8%, 0%, 32.2%)
CIE-LABlab(33.01, 30.24, -59.24)
CIE-LCHlch(33.01, 66.51, 297.04°)
OKLaboklab(43.43% 0.0007 -0.171)
OKLCHoklch(43.43% 0.171 270.2)
XYZxyz(10.7074, 7.5408, 40.4183)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042AD #AD9B30
analogous
#3080AD #3042AD #5C30AD
triadic
#3042AD #AD3042 #42AD30
tetradic
#3042AD #AD3080 #AD9B30 #30AD5C
square
#3042AD #AD3080 #AD9B30 #30AD5C
split-complementary
#3042AD #AD5C30 #80AD30
monochromatic
#151D4D #23307D #3042AD #4D5FCE #7D8ADB

Accessibility & contrast

On white

8.37
#3042AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3042AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042AD
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042AD#FFFFFF#000000##FFFFFF
##3042AD1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3042ad;
/* rgb */ color: rgb(48, 66, 173);
/* oklch */ color: oklch(43.4% 0.171 270.2);
Tailwind
colors: {
  custom: {
    50: '#7a76c6',
    500: '#3042ad',
    950: '#000000',
  },
}
SCSS
$custom: #3042ad;
$custom-light: #7a76c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3042ad",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 231.36,
    "s": 56.561,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43433,
    "c": 0.17104,
    "h": 270.2
  },
  "luminance": 0.07542
}

Semantic roles & 50–950 ramp

primary
#3042AD
secondary
#C3B875
accent
#CA48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3042AD

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

Preview Lab → · Contrast checker → · Palette generator →

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