#304195#304195

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

Color values

HEX#304195
RGBrgb(48, 65, 149)
HSLhsl(230, 51%, 39%)
HSVhsv(230, 68%, 58%)
CMYKcmyk(67.8%, 56.4%, 0%, 41.6%)
CIE-LABlab(30.83, 22.04, -48.31)
CIE-LCHlch(30.83, 53.10, 294.52°)
OKLaboklab(41.21% 0.0012 -0.1389)
OKLCHoklch(41.21% 0.139 270.5)
XYZxyz(8.5322, 6.5781, 29.2480)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304195 #958430
analogous
#307395 #304195 #513095
triadic
#304195 #953041 #419530
tetradic
#304195 #953073 #958430 #309551
square
#304195 #953073 #958430 #309551
split-complementary
#304195 #955130 #739530
monochromatic
#121938 #212D67 #304195 #4156C2 #6F7FD1

Accessibility & contrast

On white

9.07
#304195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#304195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304195
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304195#FFFFFF#000000##FFFFFF
##3041951.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304195;
/* rgb */ color: rgb(48, 65, 149);
/* oklch */ color: oklch(41.2% 0.139 270.5);
Tailwind
colors: {
  custom: {
    50: '#7575b5',
    500: '#304195',
    950: '#000000',
  },
}
SCSS
$custom: #304195;
$custom-light: #7575b5;
$custom-dark: #000000;
JSON
{
  "hex": "#304195",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 149
  },
  "hsl": {
    "h": 229.901,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.13894,
    "h": 270.5
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#304195
secondary
#B8AB69
accent
#C34DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304195

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

Preview Lab → · Contrast checker → · Palette generator →

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