#304297#304297

#304297 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.6% C 0.140 H 270.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#304297
RGBrgb(48, 66, 151)
HSLhsl(230, 52%, 39%)
HSVhsv(230, 68%, 59%)
CMYKcmyk(68.2%, 56.3%, 0%, 40.8%)
CIE-LABlab(31.25, 22.11, -48.84)
CIE-LCHlch(31.25, 53.61, 294.36°)
OKLaboklab(41.57% 0.0004 -0.1405)
OKLCHoklch(41.57% 0.14 270.2)
XYZxyz(8.7512, 6.7584, 30.1155)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304297 #978530
analogous
#307697 #304297 #523097
triadic
#304297 #973042 #429730
tetradic
#304297 #973076 #978530 #309752
square
#304297 #973076 #978530 #309752
split-complementary
#304297 #975230 #769730
monochromatic
#12193A #212E69 #304297 #4158C3 #7081D2

Accessibility & contrast

On white

8.93
#304297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#304297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304297
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304297#FFFFFF#000000##FFFFFF
##3042971.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304297;
/* rgb */ color: rgb(48, 66, 151);
/* oklch */ color: oklch(41.6% 0.140 270.2);
Tailwind
colors: {
  custom: {
    50: '#7576b6',
    500: '#304297',
    950: '#000000',
  },
}
SCSS
$custom: #304297;
$custom-light: #7576b6;
$custom-dark: #000000;
JSON
{
  "hex": "#304297",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 151
  },
  "hsl": {
    "h": 229.515,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41574,
    "c": 0.14048,
    "h": 270.2
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

primary
#304297
secondary
#B9AB6A
accent
#C24DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304297

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

Preview Lab → · Contrast checker → · Palette generator →

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