#302F72#302F72

#302F72 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.7% C 0.112 H 279.5°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#302F72
RGBrgb(48, 47, 114)
HSLhsl(241, 42%, 32%)
HSVhsv(241, 59%, 45%)
CMYKcmyk(57.9%, 58.8%, 0%, 55.3%)
CIE-LABlab(23.26, 21.47, -38.70)
CIE-LCHlch(23.26, 44.25, 299.02°)
OKLaboklab(34.71% 0.0185 -0.1108)
OKLCHoklch(34.71% 0.112 279.5)
XYZxyz(5.2717, 3.8760, 16.3867)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F72 #71722F
analogous
#2F5072 #302F72 #522F72
triadic
#302F72 #72302F #2F7230
tetradic
#302F72 #722F50 #71722F #2F7252
square
#302F72 #722F50 #71722F #2F7252
split-complementary
#302F72 #72522F #50722F
monochromatic
#0C0B1B #1E1D47 #302F72 #42419D #605FBD

Accessibility & contrast

On white

11.83
#302F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302F72
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F72#FFFFFF#000000##FFFFFF
##302F721.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#0F3F4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #302f72;
/* rgb */ color: rgb(48, 47, 114);
/* oklch */ color: oklch(34.7% 0.112 279.5);
Tailwind
colors: {
  custom: {
    50: '#6f679b',
    500: '#302f72',
    950: '#000000',
  },
}
SCSS
$custom: #302f72;
$custom-light: #6f679b;
$custom-dark: #000000;
JSON
{
  "hex": "#302f72",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 240.896,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34706,
    "c": 0.11238,
    "h": 279.5
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#302F72
secondary
#A2A35A
accent
#D156D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #302F72

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

Preview Lab → · Contrast checker → · Palette generator →

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