#302F71#302F71

#302F71 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.111 H 279.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#302F71
RGBrgb(48, 47, 113)
HSLhsl(241, 41%, 31%)
HSVhsv(241, 58%, 44%)
CMYKcmyk(57.5%, 58.4%, 0%, 55.7%)
CIE-LABlab(23.18, 21.12, -38.18)
CIE-LCHlch(23.18, 43.63, 298.94°)
OKLaboklab(34.63% 0.0185 -0.1093)
OKLCHoklch(34.63% 0.111 279.6)
XYZxyz(5.2151, 3.8533, 16.0885)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F71 #70712F
analogous
#2F4F71 #302F71 #512F71
triadic
#302F71 #71302F #2F7130
tetradic
#302F71 #712F4F #70712F #2F7151
square
#302F71 #712F4F #70712F #2F7151
split-complementary
#302F71 #71512F #4F712F
monochromatic
#0B0B1B #1E1D46 #302F71 #42419C #605EBC

Accessibility & contrast

On white

11.86
#302F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#302F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F71
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F71#FFFFFF#000000##FFFFFF
##302F711.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023A73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#113E4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302f71;
/* rgb */ color: rgb(48, 47, 113);
/* oklch */ color: oklch(34.6% 0.111 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f679a',
    500: '#302f71',
    950: '#000000',
  },
}
SCSS
$custom: #302f71;
$custom-light: #6f679a;
$custom-dark: #000000;
JSON
{
  "hex": "#302f71",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 240.909,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34625,
    "c": 0.11088,
    "h": 279.6
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#302F71
secondary
#A1A25A
accent
#D157CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #302F71

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

Preview Lab → · Contrast checker → · Palette generator →

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