#304ABC#304ABC

#304ABC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.181 H 268.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#304ABC
RGBrgb(48, 74, 188)
HSLhsl(229, 59%, 46%)
HSVhsv(229, 74%, 74%)
CMYKcmyk(74.5%, 60.6%, 0%, 26.3%)
CIE-LABlab(36.28, 30.55, -62.77)
CIE-LCHlch(36.28, 69.81, 295.95°)
OKLaboklab(46.25% -0.0051 -0.1813)
OKLCHoklch(46.25% 0.181 268.4)
XYZxyz(12.7417, 9.1554, 48.6629)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304ABC #BCA230
analogous
#3090BC #304ABC #5C30BC
triadic
#304ABC #BC304A #4ABC30
tetradic
#304ABC #BC3090 #BCA230 #30BC5C
square
#304ABC #BC3090 #BCA230 #30BC5C
split-complementary
#304ABC #BC5C30 #90BC30
monochromatic
#17245A #24378B #304ABC #556DD4 #8697E0

Accessibility & contrast

On white

7.42
#304ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#304ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304ABC
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304ABC#FFFFFF#000000##FFFFFF
##304ABC1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#00677C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304abc;
/* rgb */ color: rgb(48, 74, 188);
/* oklch */ color: oklch(46.2% 0.181 268.4);
Tailwind
colors: {
  custom: {
    50: '#7d7cd1',
    500: '#304abc',
    950: '#000000',
  },
}
SCSS
$custom: #304abc;
$custom-light: #7d7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#304abc",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 228.857,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46246,
    "c": 0.18137,
    "h": 268.4
  },
  "luminance": 0.09157
}

Semantic roles & 50–950 ramp

primary
#304ABC
secondary
#CABC7E
accent
#C545E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304ABC

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

Preview Lab → · Contrast checker → · Palette generator →

#304ABC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva