#304B9F#304B9F

#304B9F is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.1% C 0.140 H 267.1°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#304B9F
RGBrgb(48, 75, 159)
HSLhsl(225, 54%, 41%)
HSVhsv(225, 70%, 62%)
CMYKcmyk(69.8%, 52.8%, 0%, 37.6%)
CIE-LABlab(34.32, 19.08, -48.72)
CIE-LCHlch(34.32, 52.32, 291.38°)
OKLaboklab(44.07% -0.0072 -0.14)
OKLCHoklch(44.07% 0.14 267.1)
XYZxyz(9.9908, 8.1627, 33.8432)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B9F #9F8430
analogous
#30829F #304B9F #4C309F
triadic
#304B9F #9F304B #4B9F30
tetradic
#304B9F #9F3082 #9F8430 #309F4C
square
#304B9F #9F3082 #9F8430 #309F4C
split-complementary
#304B9F #9F4C30 #829F30
monochromatic
#141F41 #223570 #304B9F #4565C7 #748CD5

Accessibility & contrast

On white

7.98
#304B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#304B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304B9F
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B9F#FFFFFF#000000##FFFFFF
##304B9F1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1556A2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #304b9f;
/* rgb */ color: rgb(48, 75, 159);
/* oklch */ color: oklch(44.1% 0.140 267.1);
Tailwind
colors: {
  custom: {
    50: '#767cbc',
    500: '#304b9f',
    950: '#000000',
  },
}
SCSS
$custom: #304b9f;
$custom-light: #767cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#304b9f",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 159
  },
  "hsl": {
    "h": 225.405,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44074,
    "c": 0.14018,
    "h": 267.1
  },
  "luminance": 0.08164
}

Semantic roles & 50–950 ramp

primary
#304B9F
secondary
#BDAA6E
accent
#B94BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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