#3042AB#3042AB

#3042AB is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.168 H 270.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#3042AB
RGBrgb(48, 66, 171)
HSLhsl(231, 56%, 43%)
HSVhsv(231, 72%, 67%)
CMYKcmyk(71.9%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.84, 29.51, -58.32)
CIE-LCHlch(32.84, 65.36, 296.84°)
OKLaboklab(43.26% 0.0007 -0.1683)
OKLCHoklch(43.26% 0.168 270.3)
XYZxyz(10.5153, 7.4640, 39.4067)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042AB #AB9930
analogous
#307FAB #3042AB #5C30AB
triadic
#3042AB #AB3042 #42AB30
tetradic
#3042AB #AB307F #AB9930 #30AB5C
square
#3042AB #AB307F #AB9930 #30AB5C
split-complementary
#3042AB #AB5C30 #7FAB30
monochromatic
#151D4B #23307B #3042AB #4C5ECD #7B89DA

Accessibility & contrast

On white

8.42
#3042AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3042AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042AB
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042AB#FFFFFF#000000##FFFFFF
##3042AB1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3042ab;
/* rgb */ color: rgb(48, 66, 171);
/* oklch */ color: oklch(43.3% 0.168 270.3);
Tailwind
colors: {
  custom: {
    50: '#7976c5',
    500: '#3042ab',
    950: '#000000',
  },
}
SCSS
$custom: #3042ab;
$custom-light: #7976c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3042ab",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 231.22,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43258,
    "c": 0.16833,
    "h": 270.3
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

primary
#3042AB
secondary
#C3B774
accent
#C948DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3042AB

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

Preview Lab → · Contrast checker → · Palette generator →

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