#304E7D#304E7D

#304E7D is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.4% C 0.087 H 259.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#304E7D
RGBrgb(48, 78, 125)
HSLhsl(217, 45%, 34%)
HSVhsv(217, 62%, 49%)
CMYKcmyk(61.6%, 37.6%, 0%, 51%)
CIE-LABlab(33.04, 4.43, -29.99)
CIE-LCHlch(33.04, 30.31, 278.40°)
OKLaboklab(42.4% -0.0164 -0.0849)
OKLCHoklch(42.4% 0.087 259.1)
XYZxyz(7.6437, 7.5572, 20.4539)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E7D #7D5F30
analogous
#30757D #304E7D #39307D
triadic
#304E7D #7D304E #4E7D30
tetradic
#304E7D #7D3075 #7D5F30 #307D39
square
#304E7D #7D3075 #7D5F30 #307D39
split-complementary
#304E7D #7D3930 #757D30
monochromatic
#0E1725 #1F3251 #304E7D #416AA9 #6489C3

Accessibility & contrast

On white

8.36
#304E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304E7D
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E7D#FFFFFF#000000##FFFFFF
##304E7D1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A527F
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304e7d;
/* rgb */ color: rgb(48, 78, 125);
/* oklch */ color: oklch(42.4% 0.087 259.1);
Tailwind
colors: {
  custom: {
    50: '#6f7fa3',
    500: '#304e7d',
    950: '#000000',
  },
}
SCSS
$custom: #304e7d;
$custom-light: #6f7fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#304e7d",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 125
  },
  "hsl": {
    "h": 216.623,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42399,
    "c": 0.08651,
    "h": 259.1
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

primary
#304E7D
secondary
#AB8D5E
accent
#A254D4
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #304E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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