#304366#304366

#304366 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.4% C 0.065 H 262.0°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#304366
RGBrgb(48, 67, 102)
HSLhsl(219, 36%, 29%)
HSVhsv(219, 53%, 40%)
CMYKcmyk(52.9%, 34.3%, 0%, 60%)
CIE-LABlab(28.38, 3.52, -22.84)
CIE-LCHlch(28.38, 23.11, 278.76°)
OKLaboklab(38.37% -0.009 -0.0642)
OKLCHoklch(38.37% 0.065 262)
XYZxyz(5.6236, 5.6016, 13.3527)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304366 #665330
analogous
#305E66 #304366 #383066
triadic
#304366 #663043 #436630
tetradic
#304366 #66305E #665330 #306638
square
#304366 #66305E #665330 #306638
split-complementary
#304366 #663830 #5E6630
monochromatic
#0A0E15 #1C283C #304366 #445E90 #5D7CB3

Accessibility & contrast

On white

9.90
#304366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#304366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304366
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304366#FFFFFF#000000##FFFFFF
##3043661.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364667
Deuteranopia (green-blind)
#2F4165
Tritanopia (blue-blind)
#184B50
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304366;
/* rgb */ color: rgb(48, 67, 102);
/* oklch */ color: oklch(38.4% 0.065 262.0);
Tailwind
colors: {
  custom: {
    50: '#6c7692',
    500: '#304366',
    950: '#000000',
  },
}
SCSS
$custom: #304366;
$custom-light: #6c7692;
$custom-dark: #000000;
JSON
{
  "hex": "#304366",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 102
  },
  "hsl": {
    "h": 218.889,
    "s": 36,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38367,
    "c": 0.06486,
    "h": 262
  },
  "luminance": 0.05602
}

Semantic roles & 50–950 ramp

primary
#304366
secondary
#97825A
accent
#A55CCC
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#07080D
muted
#7A7B7D

Preview Lab

Preview with #304366

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

Preview Lab → · Contrast checker → · Palette generator →

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