#304995#304995

#304995 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.9% C 0.128 H 267.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#304995
RGBrgb(48, 73, 149)
HSLhsl(225, 51%, 39%)
HSVhsv(225, 68%, 58%)
CMYKcmyk(67.8%, 51%, 0%, 41.6%)
CIE-LABlab(33.05, 16.66, -44.71)
CIE-LCHlch(33.05, 47.71, 290.44°)
OKLaboklab(42.89% -0.0064 -0.1282)
OKLCHoklch(42.89% 0.128 267.1)
XYZxyz(9.0244, 7.5625, 29.4121)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304995 #957C30
analogous
#307B95 #304995 #493095
triadic
#304995 #953049 #499530
tetradic
#304995 #95307B #957C30 #309549
square
#304995 #95307B #957C30 #309549
split-complementary
#304995 #954930 #7B9530
monochromatic
#121C38 #213267 #304995 #4161C2 #6F87D1

Accessibility & contrast

On white

8.36
#304995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#304995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##304995#FFFFFF#000000##FFFFFF
##3049951.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)
#1E5398
Deuteranopia (green-blind)
#004993
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304995;
/* rgb */ color: rgb(48, 73, 149);
/* oklch */ color: oklch(42.9% 0.128 267.1);
Tailwind
colors: {
  custom: {
    50: '#747bb5',
    500: '#304995',
    950: '#000000',
  },
}
SCSS
$custom: #304995;
$custom-light: #747bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#304995",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 149
  },
  "hsl": {
    "h": 225.149,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4289,
    "c": 0.12838,
    "h": 267.1
  },
  "luminance": 0.07563
}

Semantic roles & 50–950 ramp

primary
#304995
secondary
#B8A469
accent
#B84DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304995

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

Preview Lab → · Contrast checker → · Palette generator →

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