#302E77#302E77

#302E77 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.121 H 279.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#302E77
RGBrgb(48, 46, 119)
HSLhsl(242, 44%, 32%)
HSVhsv(242, 61%, 47%)
CMYKcmyk(59.7%, 61.3%, 0%, 53.3%)
CIE-LABlab(23.38, 23.92, -41.69)
CIE-LCHlch(23.38, 48.06, 299.85°)
OKLaboklab(34.92% 0.0196 -0.1196)
OKLCHoklch(34.92% 0.121 279.3)
XYZxyz(5.5246, 3.9139, 17.9135)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302E77 #75772E
analogous
#2E5077 #302E77 #552E77
triadic
#302E77 #77302E #2E7730
tetradic
#302E77 #772E50 #75772E #2E7755
square
#302E77 #772E50 #75772E #2E7755
split-complementary
#302E77 #77552E #50772E
monochromatic
#0C0C1F #1E1D4B #302E77 #423FA3 #615EC1

Accessibility & contrast

On white

11.78
#302E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #302E77
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302E77#FFFFFF#000000##FFFFFF
##302E771.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B79
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#073F4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #302e77;
/* rgb */ color: rgb(48, 46, 119);
/* oklch */ color: oklch(34.9% 0.121 279.3);
Tailwind
colors: {
  custom: {
    50: '#70679f',
    500: '#302e77',
    950: '#000000',
  },
}
SCSS
$custom: #302e77;
$custom-light: #70679f;
$custom-dark: #000000;
JSON
{
  "hex": "#302e77",
  "rgb": {
    "r": 48,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 241.644,
    "s": 44.242,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34925,
    "c": 0.12124,
    "h": 279.3
  },
  "luminance": 0.03914
}

Semantic roles & 50–950 ramp

primary
#302E77
secondary
#A5A859
accent
#D454D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #302E77

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

Preview Lab → · Contrast checker → · Palette generator →

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