#304675#304675

#304675 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.0% C 0.084 H 264.0°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#304675
RGBrgb(48, 70, 117)
HSLhsl(221, 42%, 32%)
HSVhsv(221, 59%, 46%)
CMYKcmyk(59%, 40.2%, 0%, 54.1%)
CIE-LABlab(30.14, 6.83, -29.59)
CIE-LCHlch(30.14, 30.37, 283.01°)
OKLaboklab(40% -0.0088 -0.0839)
OKLCHoklch(40% 0.084 264)
XYZxyz(6.6189, 6.2925, 17.6920)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304675 #755F30
analogous
#306875 #304675 #3D3075
triadic
#304675 #753046 #467530
tetradic
#304675 #753068 #755F30 #30753D
square
#304675 #753068 #755F30 #30753D
split-complementary
#304675 #753D30 #687530
monochromatic
#0C121E #1E2C4A #304675 #4260A0 #617FBE

Accessibility & contrast

On white

9.30
#304675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#304675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304675
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304675#FFFFFF#000000##FFFFFF
##3046751.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334A77
Deuteranopia (green-blind)
#2A4474
Tritanopia (blue-blind)
#025058
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304675;
/* rgb */ color: rgb(48, 70, 117);
/* oklch */ color: oklch(40.0% 0.084 264.0);
Tailwind
colors: {
  custom: {
    50: '#6e799d',
    500: '#304675',
    950: '#000000',
  },
}
SCSS
$custom: #304675;
$custom-light: #6e799d;
$custom-dark: #000000;
JSON
{
  "hex": "#304675",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 117
  },
  "hsl": {
    "h": 220.87,
    "s": 41.818,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39999,
    "c": 0.08432,
    "h": 264
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#304675
secondary
#A58E5B
accent
#AA56D2
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #304675

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

Preview Lab → · Contrast checker → · Palette generator →

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