#302F7C#302F7C

#302F7C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.127 H 278.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#302F7C
RGBrgb(48, 47, 124)
HSLhsl(241, 45%, 34%)
HSVhsv(241, 62%, 49%)
CMYKcmyk(61.3%, 62.1%, 0%, 51.4%)
CIE-LABlab(24.05, 25.03, -43.77)
CIE-LCHlch(24.05, 50.42, 299.76°)
OKLaboklab(35.55% 0.0184 -0.1258)
OKLCHoklch(35.55% 0.127 278.3)
XYZxyz(5.8724, 4.1162, 19.5499)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#302F7C #7B7C2F
analogous
#2F547C #302F7C #562F7C
triadic
#302F7C #7C302F #2F7C30
tetradic
#302F7C #7C2F54 #7B7C2F #2F7C56
square
#302F7C #7C2F54 #7B7C2F #2F7C56
split-complementary
#302F7C #7C562F #547C2F
monochromatic
#0E0D23 #1F1E50 #302F7C #4140A8 #6362C3

Accessibility & contrast

On white

11.52
#302F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#302F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #302F7C
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##302F7C#FFFFFF#000000##FFFFFF
##302F7C1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #302f7c;
/* rgb */ color: rgb(48, 47, 124);
/* oklch */ color: oklch(35.5% 0.127 278.3);
Tailwind
colors: {
  custom: {
    50: '#7167a3',
    500: '#302f7c',
    950: '#000000',
  },
}
SCSS
$custom: #302f7c;
$custom-light: #7167a3;
$custom-dark: #000000;
JSON
{
  "hex": "#302f7c",
  "rgb": {
    "r": 48,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 240.779,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35546,
    "c": 0.12712,
    "h": 278.3
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#302F7C
secondary
#A9AA5C
accent
#D553D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #302F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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