#3042B1#3042B1

#3042B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.176 H 270.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#3042B1
RGBrgb(48, 66, 177)
HSLhsl(232, 57%, 44%)
HSVhsv(232, 73%, 69%)
CMYKcmyk(72.9%, 62.7%, 0%, 30.6%)
CIE-LABlab(33.35, 31.70, -61.07)
CIE-LCHlch(33.35, 68.81, 297.43°)
OKLaboklab(43.79% 0.0006 -0.1764)
OKLCHoklch(43.79% 0.176 270.2)
XYZxyz(11.1002, 7.6980, 42.4873)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042B1 #B19F30
analogous
#3083B1 #3042B1 #5F30B1
triadic
#3042B1 #B13042 #42B130
tetradic
#3042B1 #B13083 #B19F30 #30B15F
square
#3042B1 #B13083 #B19F30 #30B15F
split-complementary
#3042B1 #B15F30 #83B130
monochromatic
#161E51 #233081 #3042B1 #4F61CF #7F8CDC

Accessibility & contrast

On white

8.27
#3042B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3042B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042B1
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042B1#FFFFFF#000000##FFFFFF
##3042B11.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3042b1;
/* rgb */ color: rgb(48, 66, 177);
/* oklch */ color: oklch(43.8% 0.176 270.2);
Tailwind
colors: {
  custom: {
    50: '#7b76c9',
    500: '#3042b1',
    950: '#000000',
  },
}
SCSS
$custom: #3042b1;
$custom-light: #7b76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3042b1",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 231.628,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43788,
    "c": 0.1764,
    "h": 270.2
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#3042B1
secondary
#C5BA78
accent
#CB47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3042B1

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

Preview Lab → · Contrast checker → · Palette generator →

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