#304168#304168

#304168 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.071 H 265.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#304168
RGBrgb(48, 65, 104)
HSLhsl(222, 37%, 30%)
HSVhsv(222, 54%, 41%)
CMYKcmyk(53.8%, 37.5%, 0%, 59.2%)
CIE-LABlab(27.87, 5.56, -24.93)
CIE-LCHlch(27.87, 25.54, 282.57°)
OKLaboklab(38% -0.0057 -0.0703)
OKLCHoklch(38% 0.071 265.3)
XYZxyz(5.6071, 5.4081, 13.8424)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304168 #685730
analogous
#305D68 #304168 #3B3068
triadic
#304168 #683041 #416830
tetradic
#304168 #68305D #685730 #30683B
square
#304168 #68305D #685730 #30683B
split-complementary
#304168 #683B30 #5D6830
monochromatic
#0A0D15 #1D273E #304168 #435B92 #5E78B5

Accessibility & contrast

On white

10.09
#304168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#304168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304168
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304168#FFFFFF#000000##FFFFFF
##3041681.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32456A
Deuteranopia (green-blind)
#2C3F67
Tritanopia (blue-blind)
#17494F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #304168;
/* rgb */ color: rgb(48, 65, 104);
/* oklch */ color: oklch(38.0% 0.071 265.3);
Tailwind
colors: {
  custom: {
    50: '#6c7593',
    500: '#304168',
    950: '#000000',
  },
}
SCSS
$custom: #304168;
$custom-light: #6c7593;
$custom-dark: #000000;
JSON
{
  "hex": "#304168",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 104
  },
  "hsl": {
    "h": 221.786,
    "s": 36.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38001,
    "c": 0.07055,
    "h": 265.3
  },
  "luminance": 0.05408
}

Semantic roles & 50–950 ramp

primary
#304168
secondary
#99865A
accent
#AA5BCD
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07080D
muted
#7A7B7E

Preview Lab

Preview with #304168

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

Preview Lab → · Contrast checker → · Palette generator →

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