#30345C#30345C

#30345C is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.2% C 0.070 H 277.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#30345C
RGBrgb(48, 52, 92)
HSLhsl(235, 31%, 27%)
HSVhsv(235, 48%, 36%)
CMYKcmyk(47.8%, 43.5%, 0%, 63.9%)
CIE-LABlab(23.19, 10.30, -24.54)
CIE-LCHlch(23.19, 26.61, 292.77°)
OKLaboklab(34.18% 0.0094 -0.0693)
OKLCHoklch(34.18% 0.07 277.7)
XYZxyz(4.3781, 3.8569, 10.6369)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30345C #5C5830
analogous
#304A5C #30345C #42305C
triadic
#30345C #5C3034 #345C30
tetradic
#30345C #5C304A #5C5830 #305C42
square
#30345C #5C304A #5C5830 #305C42
split-complementary
#30345C #5C4230 #4A5C30
monochromatic
#0A0B14 #1B1D34 #30345C #454B84 #5C63AA

Accessibility & contrast

On white

11.86
#30345C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#30345C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30345C
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30345C#FFFFFF#000000##FFFFFF
##30345C1.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)
#25395E
Deuteranopia (green-blind)
#22365B
Tritanopia (blue-blind)
#213C43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #30345c;
/* rgb */ color: rgb(48, 52, 92);
/* oklch */ color: oklch(34.2% 0.070 277.7);
Tailwind
colors: {
  custom: {
    50: '#6b6b8a',
    500: '#30345c',
    950: '#000000',
  },
}
SCSS
$custom: #30345c;
$custom-light: #6b6b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#30345c",
  "rgb": {
    "r": 48,
    "g": 52,
    "b": 92
  },
  "hsl": {
    "h": 234.545,
    "s": 31.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34176,
    "c": 0.06988,
    "h": 277.7
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#30345C
secondary
#8D895A
accent
#BE60C8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #30345C

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

Preview Lab → · Contrast checker → · Palette generator →

#30345C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva