#3042AE#3042AE

#3042AE is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.172 H 270.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#3042AE
RGBrgb(48, 66, 174)
HSLhsl(231, 57%, 44%)
HSVhsv(231, 72%, 68%)
CMYKcmyk(72.4%, 62.1%, 0%, 31.8%)
CIE-LABlab(33.09, 30.61, -59.70)
CIE-LCHlch(33.09, 67.09, 297.14°)
OKLaboklab(43.52% 0.0007 -0.1724)
OKLCHoklch(43.52% 0.172 270.2)
XYZxyz(10.8045, 7.5797, 40.9298)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042AE #AE9C30
analogous
#3081AE #3042AE #5D30AE
triadic
#3042AE #AE3042 #42AE30
tetradic
#3042AE #AE3081 #AE9C30 #30AE5D
square
#3042AE #AE3081 #AE9C30 #30AE5D
split-complementary
#3042AE #AE5D30 #81AE30
monochromatic
#161E4E #23307E #3042AE #4D60CE #7D8BDB

Accessibility & contrast

On white

8.35
#3042AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#3042AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042AE
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042AE#FFFFFF#000000##FFFFFF
##3042AE1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3042ae;
/* rgb */ color: rgb(48, 66, 174);
/* oklch */ color: oklch(43.5% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#7a76c7',
    500: '#3042ae',
    950: '#000000',
  },
}
SCSS
$custom: #3042ae;
$custom-light: #7a76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3042ae",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 231.429,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43521,
    "c": 0.17238,
    "h": 270.2
  },
  "luminance": 0.07581
}

Semantic roles & 50–950 ramp

primary
#3042AE
secondary
#C4B976
accent
#CA48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3042AE

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

Preview Lab → · Contrast checker → · Palette generator →

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