#304294#304294

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

Color values

HEX#304294
RGBrgb(48, 66, 148)
HSLhsl(229, 51%, 38%)
HSVhsv(229, 68%, 58%)
CMYKcmyk(67.6%, 55.4%, 0%, 42%)
CIE-LABlab(31.02, 20.99, -47.38)
CIE-LCHlch(31.02, 51.82, 293.90°)
OKLaboklab(41.33% 0.0002 -0.1362)
OKLCHoklch(41.33% 0.136 270.1)
XYZxyz(8.5106, 6.6621, 28.8486)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304294 #948230
analogous
#307494 #304294 #503094
triadic
#304294 #943042 #429430
tetradic
#304294 #943074 #948230 #309450
square
#304294 #943074 #948230 #309450
split-complementary
#304294 #945030 #749430
monochromatic
#121938 #212D66 #304294 #4057C1 #6E80D0

Accessibility & contrast

On white

9.00
#304294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304294
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304294#FFFFFF#000000##FFFFFF
##3042941.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044E97
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304294;
/* rgb */ color: rgb(48, 66, 148);
/* oklch */ color: oklch(41.3% 0.136 270.1);
Tailwind
colors: {
  custom: {
    50: '#7476b4',
    500: '#304294',
    950: '#000000',
  },
}
SCSS
$custom: #304294;
$custom-light: #7476b4;
$custom-dark: #000000;
JSON
{
  "hex": "#304294",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 148
  },
  "hsl": {
    "h": 229.2,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41333,
    "c": 0.13617,
    "h": 270.1
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#304294
secondary
#B8A968
accent
#C14DDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304294

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

Preview Lab → · Contrast checker → · Palette generator →

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