#304095#304095

#304095 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.140 H 270.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#304095
RGBrgb(48, 64, 149)
HSLhsl(230, 51%, 39%)
HSVhsv(230, 68%, 58%)
CMYKcmyk(67.8%, 57%, 0%, 41.6%)
CIE-LABlab(30.55, 22.71, -48.75)
CIE-LCHlch(30.55, 53.78, 294.98°)
OKLaboklab(41% 0.0021 -0.1402)
OKLCHoklch(41% 0.14 270.9)
XYZxyz(8.4753, 6.4643, 29.2290)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304095 #958530
analogous
#307295 #304095 #523095
triadic
#304095 #953040 #409530
tetradic
#304095 #953072 #958530 #309552
square
#304095 #953072 #958530 #309552
split-complementary
#304095 #955230 #729530
monochromatic
#121838 #212C67 #304095 #4155C2 #6F7ED1

Accessibility & contrast

On white

9.16
#304095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#304095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304095
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304095#FFFFFF#000000##FFFFFF
##3040951.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304095;
/* rgb */ color: rgb(48, 64, 149);
/* oklch */ color: oklch(41.0% 0.140 270.9);
Tailwind
colors: {
  custom: {
    50: '#7574b5',
    500: '#304095',
    950: '#000000',
  },
}
SCSS
$custom: #304095;
$custom-light: #7574b5;
$custom-dark: #000000;
JSON
{
  "hex": "#304095",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 149
  },
  "hsl": {
    "h": 230.495,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41004,
    "c": 0.14026,
    "h": 270.9
  },
  "luminance": 0.06465
}

Semantic roles & 50–950 ramp

primary
#304095
secondary
#B8AC69
accent
#C44DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304095

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

Preview Lab → · Contrast checker → · Palette generator →

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