#304185#304185

#304185 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.0% C 0.115 H 269.9°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#304185
RGBrgb(48, 65, 133)
HSLhsl(228, 47%, 35%)
HSVhsv(228, 64%, 52%)
CMYKcmyk(63.9%, 51.1%, 0%, 47.8%)
CIE-LABlab(29.67, 16.09, -40.33)
CIE-LCHlch(29.67, 43.42, 291.75°)
OKLaboklab(39.97% -0.0001 -0.1155)
OKLCHoklch(39.97% 0.115 269.9)
XYZxyz(7.3414, 6.1018, 22.9766)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304185 #857430
analogous
#306B85 #304185 #493085
triadic
#304185 #853041 #418530
tetradic
#304185 #85306B #857430 #308549
square
#304185 #85306B #857430 #308549
split-complementary
#304185 #854930 #6B8530
monochromatic
#10152B #202B58 #304185 #4057B2 #677BC8

Accessibility & contrast

On white

9.46
#304185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#304185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304185
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304185#FFFFFF#000000##FFFFFF
##3041851.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4A87
Deuteranopia (green-blind)
#094284
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304185;
/* rgb */ color: rgb(48, 65, 133);
/* oklch */ color: oklch(40.0% 0.115 269.9);
Tailwind
colors: {
  custom: {
    50: '#7175a9',
    500: '#304185',
    950: '#000000',
  },
}
SCSS
$custom: #304185;
$custom-light: #7175a9;
$custom-dark: #000000;
JSON
{
  "hex": "#304185",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 133
  },
  "hsl": {
    "h": 228,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39965,
    "c": 0.11546,
    "h": 269.9
  },
  "luminance": 0.06102
}

Semantic roles & 50–950 ramp

primary
#304185
secondary
#AFA061
accent
#BC51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304185

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

Preview Lab → · Contrast checker → · Palette generator →

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