#18306C#18306C

#18306C is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.109 H 264.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#18306C
RGBrgb(24, 48, 108)
HSLhsl(223, 64%, 26%)
HSVhsv(223, 78%, 42%)
CMYKcmyk(77.8%, 55.6%, 0%, 57.6%)
CIE-LABlab(21.54, 14.09, -37.68)
CIE-LCHlch(21.54, 40.23, 290.50°)
OKLaboklab(32.87% -0.0102 -0.1085)
OKLCHoklch(32.87% 0.109 264.6)
XYZxyz(4.1395, 3.3904, 14.6207)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18306C #6C5418
analogous
#185A6C #18306C #2A186C
triadic
#18306C #6C1830 #306C18
tetradic
#18306C #6C185A #6C5418 #186C2A
square
#18306C #6C185A #6C5418 #186C2A
split-complementary
#18306C #6C2A18 #5A6C18
monochromatic
#060B19 #0D1A3A #18306C #23469E #2E5DD0

Accessibility & contrast

On white

12.51
#18306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#18306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18306C
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18306C#FFFFFF#000000##FFFFFF
##18306C1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06386E
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18306c;
/* rgb */ color: rgb(24, 48, 108);
/* oklch */ color: oklch(32.9% 0.109 264.6);
Tailwind
colors: {
  custom: {
    50: '#626797',
    500: '#18306c',
    950: '#000000',
  },
}
SCSS
$custom: #18306c;
$custom-light: #626797;
$custom-dark: #000000;
JSON
{
  "hex": "#18306c",
  "rgb": {
    "r": 24,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 222.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32867,
    "c": 0.10895,
    "h": 264.6
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#18306C
secondary
#A2853E
accent
#B741E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #18306C

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

Preview Lab → · Contrast checker → · Palette generator →

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