#304C8E#304C8E

#304C8E is a dark, moderate blue. Relative luminance 0.077; OKLCH L 43.0% C 0.114 H 264.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#304C8E
RGBrgb(48, 76, 142)
HSLhsl(222, 49%, 37%)
HSVhsv(222, 66%, 56%)
CMYKcmyk(66.2%, 46.5%, 0%, 44.3%)
CIE-LABlab(33.46, 12.03, -39.80)
CIE-LCHlch(33.46, 41.58, 286.82°)
OKLaboklab(43.05% -0.0104 -0.1137)
OKLCHoklch(43.05% 0.114 264.7)
XYZxyz(8.6842, 7.7494, 26.6241)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C8E #8E7230
analogous
#307B8E #304C8E #43308E
triadic
#304C8E #8E304C #4C8E30
tetradic
#304C8E #8E307B #8E7230 #308E43
square
#304C8E #8E307B #8E7230 #308E43
split-complementary
#304C8E #8E4330 #7B8E30
monochromatic
#111B33 #213460 #304C8E #3F64BC #6B88CD

Accessibility & contrast

On white

8.24
#304C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#304C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304C8E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C8E#FFFFFF#000000##FFFFFF
##304C8E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#1C4B8D
Tritanopia (blue-blind)
#005B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304c8e;
/* rgb */ color: rgb(48, 76, 142);
/* oklch */ color: oklch(43.0% 0.114 264.7);
Tailwind
colors: {
  custom: {
    50: '#737daf',
    500: '#304c8e',
    950: '#000000',
  },
}
SCSS
$custom: #304c8e;
$custom-light: #737daf;
$custom-dark: #000000;
JSON
{
  "hex": "#304c8e",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 222.128,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43047,
    "c": 0.1142,
    "h": 264.7
  },
  "luminance": 0.0775
}

Semantic roles & 50–950 ramp

primary
#304C8E
secondary
#B49D65
accent
#B04FD9
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #304C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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