#304085#304085

#304085 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.7% C 0.117 H 270.5°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#304085
RGBrgb(48, 64, 133)
HSLhsl(229, 47%, 35%)
HSVhsv(229, 64%, 52%)
CMYKcmyk(63.9%, 51.9%, 0%, 47.8%)
CIE-LABlab(29.38, 16.77, -40.79)
CIE-LCHlch(29.38, 44.11, 292.35°)
OKLaboklab(39.75% 0.001 -0.1168)
OKLCHoklch(39.75% 0.117 270.5)
XYZxyz(7.2845, 5.9880, 22.9577)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304085 #857530
analogous
#306A85 #304085 #4A3085
triadic
#304085 #853040 #408530
tetradic
#304085 #85306A #857530 #30854A
square
#304085 #85306A #857530 #30854A
split-complementary
#304085 #854A30 #6A8530
monochromatic
#10152B #202A58 #304085 #4056B2 #6779C8

Accessibility & contrast

On white

9.56
#304085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304085
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304085#FFFFFF#000000##FFFFFF
##3040851.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4987
Deuteranopia (green-blind)
#054284
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304085;
/* rgb */ color: rgb(48, 64, 133);
/* oklch */ color: oklch(39.7% 0.117 270.5);
Tailwind
colors: {
  custom: {
    50: '#7174a9',
    500: '#304085',
    950: '#000000',
  },
}
SCSS
$custom: #304085;
$custom-light: #7174a9;
$custom-dark: #000000;
JSON
{
  "hex": "#304085",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 133
  },
  "hsl": {
    "h": 228.706,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39748,
    "c": 0.11683,
    "h": 270.5
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#304085
secondary
#AFA161
accent
#BD51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304085

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

Preview Lab → · Contrast checker → · Palette generator →

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