#3041B8#3041B8

#3041B8 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.2% C 0.187 H 270.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#3041B8
RGBrgb(48, 65, 184)
HSLhsl(233, 59%, 45%)
HSVhsv(233, 74%, 72%)
CMYKcmyk(73.9%, 64.7%, 0%, 27.8%)
CIE-LABlab(33.71, 34.88, -64.63)
CIE-LCHlch(33.71, 73.44, 298.36°)
OKLaboklab(44.24% 0.001 -0.1868)
OKLCHoklch(44.24% 0.187 270.3)
XYZxyz(11.7580, 7.8684, 46.2372)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3041B8 #B8A730
analogous
#3085B8 #3041B8 #6330B8
triadic
#3041B8 #B83041 #41B830
tetradic
#3041B8 #B83085 #B8A730 #30B863
square
#3041B8 #B83085 #B8A730 #30B863
split-complementary
#3041B8 #B86330 #85B830
monochromatic
#171F57 #233087 #3041B8 #5363D2 #848FDF

Accessibility & contrast

On white

8.16
#3041B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3041B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3041B8
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3041B8#FFFFFF#000000##FFFFFF
##3041B81.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3041b8;
/* rgb */ color: rgb(48, 65, 184);
/* oklch */ color: oklch(44.2% 0.187 270.3);
Tailwind
colors: {
  custom: {
    50: '#7c75ce',
    500: '#3041b8',
    950: '#000000',
  },
}
SCSS
$custom: #3041b8;
$custom-light: #7c75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3041b8",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 232.5,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.18683,
    "h": 270.3
  },
  "luminance": 0.0787
}

Semantic roles & 50–950 ramp

primary
#3041B8
secondary
#C8BF7C
accent
#CE46E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3041B8

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

Preview Lab → · Contrast checker → · Palette generator →

#3041B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva