#304279#304279

#304279 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.096 H 268.2°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#304279
RGBrgb(48, 66, 121)
HSLhsl(225, 43%, 33%)
HSVhsv(225, 60%, 47%)
CMYKcmyk(60.3%, 45.5%, 0%, 52.5%)
CIE-LABlab(29.17, 10.99, -33.64)
CIE-LCHlch(29.17, 35.39, 288.09°)
OKLaboklab(39.33% -0.0031 -0.0958)
OKLCHoklch(39.33% 0.096 268.2)
XYZxyz(6.6172, 5.9048, 18.8765)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304279 #796730
analogous
#306679 #304279 #423079
triadic
#304279 #793042 #427930
tetradic
#304279 #793066 #796730 #307942
square
#304279 #793066 #796730 #307942
split-complementary
#304279 #794230 #667930
monochromatic
#0D1221 #1F2A4D #304279 #415AA5 #627AC1

Accessibility & contrast

On white

9.63
#304279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#304279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304279
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304279#FFFFFF#000000##FFFFFF
##3042791.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A487B
Deuteranopia (green-blind)
#204278
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304279;
/* rgb */ color: rgb(48, 66, 121);
/* oklch */ color: oklch(39.3% 0.096 268.2);
Tailwind
colors: {
  custom: {
    50: '#6f76a0',
    500: '#304279',
    950: '#000000',
  },
}
SCSS
$custom: #304279;
$custom-light: #6f76a0;
$custom-dark: #000000;
JSON
{
  "hex": "#304279",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 121
  },
  "hsl": {
    "h": 225.205,
    "s": 43.195,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39331,
    "c": 0.09582,
    "h": 268.2
  },
  "luminance": 0.05905
}

Semantic roles & 50–950 ramp

primary
#304279
secondary
#A8955D
accent
#B455D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #304279

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

Preview Lab → · Contrast checker → · Palette generator →

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