#304378#304378

#304378 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.5% C 0.093 H 267.2°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#304378
RGBrgb(48, 67, 120)
HSLhsl(224, 43%, 33%)
HSVhsv(224, 60%, 47%)
CMYKcmyk(60%, 44.2%, 0%, 52.9%)
CIE-LABlab(29.41, 9.95, -32.63)
CIE-LCHlch(29.41, 34.11, 286.95°)
OKLaboklab(39.49% -0.0045 -0.0928)
OKLCHoklch(39.49% 0.093 267.2)
XYZxyz(6.6151, 5.9982, 18.5748)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304378 #786530
analogous
#306778 #304378 #413078
triadic
#304378 #783043 #437830
tetradic
#304378 #783067 #786530 #307841
square
#304378 #783067 #786530 #307841
split-complementary
#304378 #784130 #677830
monochromatic
#0D1221 #1F2B4C #304378 #415BA4 #627BC0

Accessibility & contrast

On white

9.55
#304378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304378
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304378#FFFFFF#000000##FFFFFF
##3043781.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497A
Deuteranopia (green-blind)
#224277
Tritanopia (blue-blind)
#004F57
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304378;
/* rgb */ color: rgb(48, 67, 120);
/* oklch */ color: oklch(39.5% 0.093 267.2);
Tailwind
colors: {
  custom: {
    50: '#6f769f',
    500: '#304378',
    950: '#000000',
  },
}
SCSS
$custom: #304378;
$custom-light: #6f769f;
$custom-dark: #000000;
JSON
{
  "hex": "#304378",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 120
  },
  "hsl": {
    "h": 224.167,
    "s": 42.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39493,
    "c": 0.09292,
    "h": 267.2
  },
  "luminance": 0.05999
}

Semantic roles & 50–950 ramp

primary
#304378
secondary
#A7945C
accent
#B255D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #304378

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

Preview Lab → · Contrast checker → · Palette generator →

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