#30345E#30345E

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

Color values

HEX#30345E
RGBrgb(48, 52, 94)
HSLhsl(235, 32%, 28%)
HSVhsv(235, 49%, 37%)
CMYKcmyk(48.9%, 44.7%, 0%, 63.1%)
CIE-LABlab(23.31, 10.99, -25.66)
CIE-LCHlch(23.31, 27.91, 293.18°)
OKLaboklab(34.31% 0.0098 -0.0725)
OKLCHoklch(34.31% 0.073 277.7)
XYZxyz(4.4667, 3.8923, 11.1034)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30345E #5E5A30
analogous
#304B5E #30345E #43305E
triadic
#30345E #5E3034 #345E30
tetradic
#30345E #5E304B #5E5A30 #305E43
square
#30345E #5E304B #5E5A30 #305E43
split-complementary
#30345E #5E4330 #4B5E30
monochromatic
#0A0B14 #1B1E35 #30345E #454A87 #5C63AC

Accessibility & contrast

On white

11.81
#30345E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#30345E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30345E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30345E#FFFFFF#000000##FFFFFF
##30345E1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243960
Deuteranopia (green-blind)
#21365D
Tritanopia (blue-blind)
#203D44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #30345e;
/* rgb */ color: rgb(48, 52, 94);
/* oklch */ color: oklch(34.3% 0.073 277.7);
Tailwind
colors: {
  custom: {
    50: '#6b6b8c',
    500: '#30345e',
    950: '#000000',
  },
}
SCSS
$custom: #30345e;
$custom-light: #6b6b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#30345e",
  "rgb": {
    "r": 48,
    "g": 52,
    "b": 94
  },
  "hsl": {
    "h": 234.783,
    "s": 32.394,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34306,
    "c": 0.07319,
    "h": 277.7
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#30345E
secondary
#8F8B5A
accent
#BF5FC9
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #30345E

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

Preview Lab → · Contrast checker → · Palette generator →

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