#304679#304679

#304679 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.090 H 265.0°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#304679
RGBrgb(48, 70, 121)
HSLhsl(222, 43%, 33%)
HSVhsv(222, 60%, 47%)
CMYKcmyk(60.3%, 42.1%, 0%, 52.5%)
CIE-LABlab(30.37, 8.29, -31.73)
CIE-LCHlch(30.37, 32.79, 284.64°)
OKLaboklab(40.26% -0.0079 -0.0901)
OKLCHoklch(40.26% 0.09 265)
XYZxyz(6.8591, 6.3886, 18.9571)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304679 #796330
analogous
#306A79 #304679 #3E3079
triadic
#304679 #793046 #467930
tetradic
#304679 #79306A #796330 #30793E
square
#304679 #79306A #796330 #30793E
split-complementary
#304679 #793E30 #6A7930
monochromatic
#0D1321 #1F2D4D #304679 #415FA5 #627FC1

Accessibility & contrast

On white

9.22
#304679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#304679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304679
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304679#FFFFFF#000000##FFFFFF
##3046791.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304B7B
Deuteranopia (green-blind)
#274478
Tritanopia (blue-blind)
#005159
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304679;
/* rgb */ color: rgb(48, 70, 121);
/* oklch */ color: oklch(40.3% 0.090 265.0);
Tailwind
colors: {
  custom: {
    50: '#6f79a0',
    500: '#304679',
    950: '#000000',
  },
}
SCSS
$custom: #304679;
$custom-light: #6f79a0;
$custom-dark: #000000;
JSON
{
  "hex": "#304679",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 121
  },
  "hsl": {
    "h": 221.918,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40256,
    "c": 0.09046,
    "h": 265
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#304679
secondary
#A8915D
accent
#AD55D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #304679

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

Preview Lab → · Contrast checker → · Palette generator →

#304679 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva