#304896#304896

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

Color values

HEX#304896
RGBrgb(48, 72, 150)
HSLhsl(226, 52%, 39%)
HSVhsv(226, 68%, 59%)
CMYKcmyk(68%, 52%, 0%, 41.2%)
CIE-LABlab(32.84, 17.71, -45.66)
CIE-LCHlch(32.84, 48.97, 291.19°)
OKLaboklab(42.75% -0.0053 -0.131)
OKLCHoklch(42.75% 0.131 267.7)
XYZxyz(9.0394, 7.4643, 29.8126)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304896 #967E30
analogous
#307B96 #304896 #4B3096
triadic
#304896 #963048 #489630
tetradic
#304896 #96307B #967E30 #30964B
square
#304896 #96307B #967E30 #30964B
split-complementary
#304896 #964B30 #7B9630
monochromatic
#121B39 #213268 #304896 #415FC2 #6F86D1

Accessibility & contrast

On white

8.42
#304896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#304896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304896
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304896#FFFFFF#000000##FFFFFF
##3048961.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5299
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304896;
/* rgb */ color: rgb(48, 72, 150);
/* oklch */ color: oklch(42.8% 0.131 267.7);
Tailwind
colors: {
  custom: {
    50: '#747ab5',
    500: '#304896',
    950: '#000000',
  },
}
SCSS
$custom: #304896;
$custom-light: #747ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#304896",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 150
  },
  "hsl": {
    "h": 225.882,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42751,
    "c": 0.13114,
    "h": 267.7
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304896

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

Preview Lab → · Contrast checker → · Palette generator →

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