#304295#304295

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

Color values

HEX#304295
RGBrgb(48, 66, 149)
HSLhsl(229, 51%, 39%)
HSVhsv(229, 68%, 58%)
CMYKcmyk(67.8%, 55.7%, 0%, 41.6%)
CIE-LABlab(31.10, 21.37, -47.87)
CIE-LCHlch(31.10, 52.42, 294.06°)
OKLaboklab(41.41% 0.0003 -0.1376)
OKLCHoklch(41.41% 0.138 270.1)
XYZxyz(8.5901, 6.6939, 29.2673)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304295 #958330
analogous
#307495 #304295 #503095
triadic
#304295 #953042 #429530
tetradic
#304295 #953074 #958330 #309550
square
#304295 #953074 #958330 #309550
split-complementary
#304295 #955030 #749530
monochromatic
#121938 #212D67 #304295 #4158C2 #6F80D1

Accessibility & contrast

On white

8.98
#304295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#304295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304295
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304295#FFFFFF#000000##FFFFFF
##3042951.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014E98
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304295;
/* rgb */ color: rgb(48, 66, 149);
/* oklch */ color: oklch(41.4% 0.138 270.1);
Tailwind
colors: {
  custom: {
    50: '#7576b5',
    500: '#304295',
    950: '#000000',
  },
}
SCSS
$custom: #304295;
$custom-light: #7576b5;
$custom-dark: #000000;
JSON
{
  "hex": "#304295",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 149
  },
  "hsl": {
    "h": 229.307,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41413,
    "c": 0.13761,
    "h": 270.1
  },
  "luminance": 0.06695
}

Semantic roles & 50–950 ramp

primary
#304295
secondary
#B8AA69
accent
#C14DDB
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304295

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

Preview Lab → · Contrast checker → · Palette generator →

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