#304B8B#304B8B

#304B8B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.6% C 0.111 H 264.9°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#304B8B
RGBrgb(48, 75, 139)
HSLhsl(222, 49%, 37%)
HSVhsv(222, 65%, 55%)
CMYKcmyk(65.5%, 46%, 0%, 45.5%)
CIE-LABlab(32.97, 11.58, -38.74)
CIE-LCHlch(32.97, 40.43, 286.64°)
OKLaboklab(42.61% -0.0099 -0.1106)
OKLCHoklch(42.61% 0.111 264.9)
XYZxyz(8.3936, 7.5238, 25.4310)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B8B #8B7030
analogous
#30798B #304B8B #43308B
triadic
#304B8B #8B304B #4B8B30
tetradic
#304B8B #8B3079 #8B7030 #308B43
square
#304B8B #8B3079 #8B7030 #308B43
split-complementary
#304B8B #8B4330 #798B30
monochromatic
#111A30 #20325E #304B8B #4064B8 #6A87CC

Accessibility & contrast

On white

8.38
#304B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#304B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304B8B
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B8B#FFFFFF#000000##FFFFFF
##304B8B1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C528D
Deuteranopia (green-blind)
#1D4A8A
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304b8b;
/* rgb */ color: rgb(48, 75, 139);
/* oklch */ color: oklch(42.6% 0.111 264.9);
Tailwind
colors: {
  custom: {
    50: '#727cad',
    500: '#304b8b',
    950: '#000000',
  },
}
SCSS
$custom: #304b8b;
$custom-light: #727cad;
$custom-dark: #000000;
JSON
{
  "hex": "#304b8b",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 139
  },
  "hsl": {
    "h": 222.198,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42614,
    "c": 0.11106,
    "h": 264.9
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#304B8B
secondary
#B39B64
accent
#B050D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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