#304B8A#304B8A

#304B8A is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.110 H 264.7°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#304B8A
RGBrgb(48, 75, 138)
HSLhsl(222, 48%, 36%)
HSVhsv(222, 65%, 54%)
CMYKcmyk(65.2%, 45.7%, 0%, 45.9%)
CIE-LABlab(32.91, 11.20, -38.22)
CIE-LCHlch(32.91, 39.83, 286.34°)
OKLaboklab(42.55% -0.0101 -0.1091)
OKLCHoklch(42.55% 0.11 264.7)
XYZxyz(8.3209, 7.4948, 25.0480)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B8A #8A6F30
analogous
#30788A #304B8A #42308A
triadic
#304B8A #8A304B #4B8A30
tetradic
#304B8A #8A3078 #8A6F30 #308A42
square
#304B8A #8A3078 #8A6F30 #308A42
split-complementary
#304B8A #8A4230 #788A30
monochromatic
#101A2F #20325D #304B8A #4064B7 #6987CB

Accessibility & contrast

On white

8.40
#304B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#304B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##304B8A#FFFFFF#000000##FFFFFF
##304B8A1.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)
#2D528C
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #304b8a;
/* rgb */ color: rgb(48, 75, 138);
/* oklch */ color: oklch(42.5% 0.110 264.7);
Tailwind
colors: {
  custom: {
    50: '#727cac',
    500: '#304b8a',
    950: '#000000',
  },
}
SCSS
$custom: #304b8a;
$custom-light: #727cac;
$custom-dark: #000000;
JSON
{
  "hex": "#304b8a",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 138
  },
  "hsl": {
    "h": 222,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42545,
    "c": 0.10958,
    "h": 264.7
  },
  "luminance": 0.07496
}

Semantic roles & 50–950 ramp

primary
#304B8A
secondary
#B29B64
accent
#AF50D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304B8A

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

Preview Lab → · Contrast checker → · Palette generator →

#304B8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva