#304293#304293

#304293 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.135 H 270.1°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#304293
RGBrgb(48, 66, 147)
HSLhsl(229, 51%, 38%)
HSVhsv(229, 67%, 58%)
CMYKcmyk(67.3%, 55.1%, 0%, 42.4%)
CIE-LABlab(30.95, 20.62, -46.89)
CIE-LCHlch(30.95, 51.22, 293.74°)
OKLaboklab(41.25% 0.0002 -0.1347)
OKLCHoklch(41.25% 0.135 270.1)
XYZxyz(8.4318, 6.6306, 28.4336)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304293 #938130
analogous
#307393 #304293 #4F3093
triadic
#304293 #933042 #429330
tetradic
#304293 #933073 #938130 #30934F
square
#304293 #933073 #938130 #30934F
split-complementary
#304293 #934F30 #739330
monochromatic
#121937 #212D65 #304293 #4057C1 #6E80D0

Accessibility & contrast

On white

9.03
#304293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304293
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304293#FFFFFF#000000##FFFFFF
##3042931.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074D96
Deuteranopia (green-blind)
#004591
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304293;
/* rgb */ color: rgb(48, 66, 147);
/* oklch */ color: oklch(41.3% 0.135 270.1);
Tailwind
colors: {
  custom: {
    50: '#7476b3',
    500: '#304293',
    950: '#000000',
  },
}
SCSS
$custom: #304293;
$custom-light: #7476b3;
$custom-dark: #000000;
JSON
{
  "hex": "#304293",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 147
  },
  "hsl": {
    "h": 229.091,
    "s": 50.769,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41254,
    "c": 0.13473,
    "h": 270.1
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#304293
secondary
#B7A968
accent
#C14EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304293

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

Preview Lab → · Contrast checker → · Palette generator →

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