#304197#304197

#304197 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.142 H 270.5°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#304197
RGBrgb(48, 65, 151)
HSLhsl(230, 52%, 39%)
HSVhsv(230, 68%, 59%)
CMYKcmyk(68.2%, 57%, 0%, 40.8%)
CIE-LABlab(30.98, 22.78, -49.28)
CIE-LCHlch(30.98, 54.29, 294.81°)
OKLaboklab(41.37% 0.0013 -0.1418)
OKLCHoklch(41.37% 0.142 270.5)
XYZxyz(8.6932, 6.6425, 30.0962)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304197 #978630
analogous
#307597 #304197 #533097
triadic
#304197 #973041 #419730
tetradic
#304197 #973075 #978630 #309753
square
#304197 #973075 #978630 #309753
split-complementary
#304197 #975330 #759730
monochromatic
#12193A #212D69 #304197 #4157C3 #7080D2

Accessibility & contrast

On white

9.02
#304197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#304197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304197
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304197#FFFFFF#000000##FFFFFF
##3041971.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304197;
/* rgb */ color: rgb(48, 65, 151);
/* oklch */ color: oklch(41.4% 0.142 270.5);
Tailwind
colors: {
  custom: {
    50: '#7575b6',
    500: '#304197',
    950: '#000000',
  },
}
SCSS
$custom: #304197;
$custom-light: #7575b6;
$custom-dark: #000000;
JSON
{
  "hex": "#304197",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 230.097,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.1418,
    "h": 270.5
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#304197
secondary
#B9AC6A
accent
#C44DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304197

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

Preview Lab → · Contrast checker → · Palette generator →

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