#304897#304897

#304897 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.133 H 267.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#304897
RGBrgb(48, 72, 151)
HSLhsl(226, 52%, 39%)
HSVhsv(226, 68%, 59%)
CMYKcmyk(68.2%, 52.3%, 0%, 40.8%)
CIE-LABlab(32.91, 18.08, -46.16)
CIE-LCHlch(32.91, 49.57, 291.39°)
OKLaboklab(42.83% -0.0052 -0.1325)
OKLCHoklch(42.83% 0.133 267.8)
XYZxyz(9.1203, 7.4966, 30.2385)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304897 #977F30
analogous
#307C97 #304897 #4B3097
triadic
#304897 #973048 #489730
tetradic
#304897 #97307C #977F30 #30974B
square
#304897 #97307C #977F30 #30974B
split-complementary
#304897 #974B30 #7C9730
monochromatic
#121C3A #213269 #304897 #4160C3 #7087D2

Accessibility & contrast

On white

8.40
#304897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#304897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304897
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304897#FFFFFF#000000##FFFFFF
##3048971.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18529A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304897;
/* rgb */ color: rgb(48, 72, 151);
/* oklch */ color: oklch(42.8% 0.133 267.8);
Tailwind
colors: {
  custom: {
    50: '#757ab6',
    500: '#304897',
    950: '#000000',
  },
}
SCSS
$custom: #304897;
$custom-light: #757ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#304897",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 226.019,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42827,
    "c": 0.13259,
    "h": 267.8
  },
  "luminance": 0.07497
}

Semantic roles & 50–950 ramp

primary
#304897
secondary
#B9A76A
accent
#BA4DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304897

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

Preview Lab → · Contrast checker → · Palette generator →

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