#304697#304697

#304697 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.4% C 0.135 H 268.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#304697
RGBrgb(48, 70, 151)
HSLhsl(227, 52%, 39%)
HSVhsv(227, 68%, 59%)
CMYKcmyk(68.2%, 53.6%, 0%, 40.8%)
CIE-LABlab(32.35, 19.42, -47.06)
CIE-LCHlch(32.35, 50.91, 292.43°)
OKLaboklab(42.4% -0.0033 -0.1352)
OKLCHoklch(42.4% 0.135 268.6)
XYZxyz(8.9931, 7.2422, 30.1961)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304697 #978130
analogous
#307A97 #304697 #4D3097
triadic
#304697 #973046 #469730
tetradic
#304697 #97307A #978130 #30974D
square
#304697 #97307A #978130 #30974D
split-complementary
#304697 #974D30 #7A9730
monochromatic
#121B3A #213069 #304697 #415DC3 #7085D2

Accessibility & contrast

On white

8.58
#304697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#304697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304697
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304697#FFFFFF#000000##FFFFFF
##3046971.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11519A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304697;
/* rgb */ color: rgb(48, 70, 151);
/* oklch */ color: oklch(42.4% 0.135 268.6);
Tailwind
colors: {
  custom: {
    50: '#7579b6',
    500: '#304697',
    950: '#000000',
  },
}
SCSS
$custom: #304697;
$custom-light: #7579b6;
$custom-dark: #000000;
JSON
{
  "hex": "#304697",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 151
  },
  "hsl": {
    "h": 227.184,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42403,
    "c": 0.13522,
    "h": 268.6
  },
  "luminance": 0.07243
}

Semantic roles & 50–950 ramp

primary
#304697
secondary
#B9A86A
accent
#BD4DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304697

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

Preview Lab → · Contrast checker → · Palette generator →

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