#304379#304379

#304379 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.6% C 0.094 H 267.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#304379
RGBrgb(48, 67, 121)
HSLhsl(224, 43%, 33%)
HSVhsv(224, 60%, 47%)
CMYKcmyk(60.3%, 44.6%, 0%, 52.5%)
CIE-LABlab(29.47, 10.31, -33.16)
CIE-LCHlch(29.47, 34.73, 287.27°)
OKLaboklab(39.56% -0.0043 -0.0944)
OKLCHoklch(39.56% 0.094 267.4)
XYZxyz(6.6761, 6.0226, 18.8961)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304379 #796630
analogous
#306779 #304379 #423079
triadic
#304379 #793043 #437930
tetradic
#304379 #793067 #796630 #307942
square
#304379 #793067 #796630 #307942
split-complementary
#304379 #794230 #677930
monochromatic
#0D1221 #1F2B4D #304379 #415BA5 #627BC1

Accessibility & contrast

On white

9.53
#304379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#304379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304379
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304379#FFFFFF#000000##FFFFFF
##3043791.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497B
Deuteranopia (green-blind)
#214278
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304379;
/* rgb */ color: rgb(48, 67, 121);
/* oklch */ color: oklch(39.6% 0.094 267.4);
Tailwind
colors: {
  custom: {
    50: '#6f76a0',
    500: '#304379',
    950: '#000000',
  },
}
SCSS
$custom: #304379;
$custom-light: #6f76a0;
$custom-dark: #000000;
JSON
{
  "hex": "#304379",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 121
  },
  "hsl": {
    "h": 224.384,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3956,
    "c": 0.09446,
    "h": 267.4
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#304379
secondary
#A8945D
accent
#B255D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #304379

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

Preview Lab → · Contrast checker → · Palette generator →

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