#3045A6#3045A6

#3045A6 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.4% C 0.158 H 269.4°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#3045A6
RGBrgb(48, 69, 166)
HSLhsl(229, 55%, 42%)
HSVhsv(229, 71%, 65%)
CMYKcmyk(71.1%, 58.4%, 0%, 34.9%)
CIE-LABlab(33.21, 25.69, -54.72)
CIE-LCHlch(33.21, 60.45, 295.15°)
OKLaboklab(43.41% -0.0016 -0.1577)
OKLCHoklch(43.41% 0.158 269.4)
XYZxyz(10.2276, 7.6368, 37.0040)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3045A6 #A69130
analogous
#3080A6 #3045A6 #5630A6
triadic
#3045A6 #A63045 #45A630
tetradic
#3045A6 #A63080 #A69130 #30A656
square
#3045A6 #A63080 #A69130 #30A656
split-complementary
#3045A6 #A65630 #80A630
monochromatic
#151E47 #223177 #3045A6 #4960CA #7889D8

Accessibility & contrast

On white

8.31
#3045A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3045A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3045A6
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3045A6#FFFFFF#000000##FFFFFF
##3045A61.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#005D6E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3045a6;
/* rgb */ color: rgb(48, 69, 166);
/* oklch */ color: oklch(43.4% 0.158 269.4);
Tailwind
colors: {
  custom: {
    50: '#7878c1',
    500: '#3045a6',
    950: '#000000',
  },
}
SCSS
$custom: #3045a6;
$custom-light: #7878c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3045a6",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 229.322,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43409,
    "c": 0.15773,
    "h": 269.4
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#3045A6
secondary
#C0B271
accent
#C449DE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #3045A6

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

Preview Lab → · Contrast checker → · Palette generator →

#3045A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva