#302F74#302F74

#302F74 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.9% C 0.115 H 279.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#302F74
RGBrgb(48, 47, 116)
HSLhsl(241, 42%, 32%)
HSVhsv(241, 59%, 45%)
CMYKcmyk(58.6%, 59.5%, 0%, 54.5%)
CIE-LABlab(23.41, 22.18, -39.73)
CIE-LCHlch(23.41, 45.50, 299.17°)
OKLaboklab(34.87% 0.0185 -0.1139)
OKLCHoklch(34.87% 0.115 279.2)
XYZxyz(5.3868, 3.9220, 16.9928)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F74 #73742F
analogous
#2F5174 #302F74 #532F74
triadic
#302F74 #74302F #2F7430
tetradic
#302F74 #742F51 #73742F #2F7453
square
#302F74 #742F51 #73742F #2F7453
split-complementary
#302F74 #74532F #51742F
monochromatic
#0C0C1D #1E1D48 #302F74 #4241A0 #615FBE

Accessibility & contrast

On white

11.77
#302F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#302F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F74
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F74#FFFFFF#000000##FFFFFF
##302F741.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#0C3F4C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302f74;
/* rgb */ color: rgb(48, 47, 116);
/* oklch */ color: oklch(34.9% 0.115 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f679d',
    500: '#302f74',
    950: '#000000',
  },
}
SCSS
$custom: #302f74;
$custom-light: #6f679d;
$custom-dark: #000000;
JSON
{
  "hex": "#302f74",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 240.87,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3487,
    "c": 0.11537,
    "h": 279.2
  },
  "luminance": 0.03922
}

Semantic roles & 50–950 ramp

primary
#302F74
secondary
#A4A55A
accent
#D256D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #302F74

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

Preview Lab → · Contrast checker → · Palette generator →

#302F74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva