#30287F#30287F

#30287F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.141 H 280.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#30287F
RGBrgb(48, 40, 127)
HSLhsl(246, 52%, 33%)
HSVhsv(246, 69%, 50%)
CMYKcmyk(62.2%, 68.5%, 0%, 50.2%)
CIE-LABlab(22.58, 30.65, -48.08)
CIE-LCHlch(22.58, 57.02, 302.52°)
OKLaboklab(34.55% 0.0249 -0.1384)
OKLCHoklch(34.55% 0.141 280.2)
XYZxyz(5.8073, 3.6779, 20.4784)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30287F #777F28
analogous
#284C7F #30287F #5B287F
triadic
#30287F #7F3028 #287F30
tetradic
#30287F #7F284C #777F28 #287F5B
square
#30287F #7F284C #777F28 #287F5B
split-complementary
#30287F #7F5B28 #4C7F28
monochromatic
#0D0B22 #1E1950 #30287F #4237AE #6257CA

Accessibility & contrast

On white

12.10
#30287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#30287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30287F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30287F#FFFFFF#000000##FFFFFF
##30287F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #30287f;
/* rgb */ color: rgb(48, 40, 127);
/* oklch */ color: oklch(34.5% 0.141 280.2);
Tailwind
colors: {
  custom: {
    50: '#7263a5',
    500: '#30287f',
    950: '#000000',
  },
}
SCSS
$custom: #30287f;
$custom-light: #7263a5;
$custom-dark: #000000;
JSON
{
  "hex": "#30287f",
  "rgb": {
    "r": 48,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 245.517,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34548,
    "c": 0.14068,
    "h": 280.2
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#30287F
secondary
#A7AF54
accent
#DC4CCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #30287F

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

Preview Lab → · Contrast checker → · Palette generator →

#30287F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva