#304CA6#304CA6

#304CA6 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.8% C 0.149 H 267.1°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#304CA6
RGBrgb(48, 76, 166)
HSLhsl(226, 55%, 42%)
HSVhsv(226, 71%, 65%)
CMYKcmyk(71.1%, 54.2%, 0%, 34.9%)
CIE-LABlab(35.10, 21.04, -51.65)
CIE-LCHlch(35.10, 55.77, 292.16°)
OKLaboklab(44.83% -0.0075 -0.1486)
OKLCHoklch(44.83% 0.149 267.1)
XYZxyz(10.6839, 8.5494, 37.1561)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CA6 #A68A30
analogous
#3087A6 #304CA6 #4F30A6
triadic
#304CA6 #A6304C #4CA630
tetradic
#304CA6 #A63087 #A68A30 #30A64F
square
#304CA6 #A63087 #A68A30 #30A64F
split-complementary
#304CA6 #A64F30 #87A630
monochromatic
#152147 #223677 #304CA6 #4968CA #788FD8

Accessibility & contrast

On white

7.75
#304CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#304CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CA6
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CA6#FFFFFF#000000##FFFFFF
##304CA61.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0858A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304ca6;
/* rgb */ color: rgb(48, 76, 166);
/* oklch */ color: oklch(44.8% 0.149 267.1);
Tailwind
colors: {
  custom: {
    50: '#787dc1',
    500: '#304ca6',
    950: '#000000',
  },
}
SCSS
$custom: #304ca6;
$custom-light: #787dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#304ca6",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 225.763,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44826,
    "c": 0.1488,
    "h": 267.1
  },
  "luminance": 0.0855
}

Semantic roles & 50–950 ramp

primary
#304CA6
secondary
#C0AE71
accent
#BB49DE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304CA6

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

Preview Lab → · Contrast checker → · Palette generator →

#304CA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva