#18246C#18246C

#18246C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.125 H 269.8°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#18246C
RGBrgb(24, 36, 108)
HSLhsl(231, 64%, 26%)
HSVhsv(231, 78%, 42%)
CMYKcmyk(77.8%, 66.7%, 0%, 57.6%)
CIE-LABlab(18.09, 22.72, -43.31)
CIE-LCHlch(18.09, 48.90, 297.68°)
OKLaboklab(30.29% -0.0005 -0.1252)
OKLCHoklch(30.29% 0.125 269.8)
XYZxyz(3.7134, 2.5383, 14.4787)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18246C #6C6018
analogous
#184E6C #18246C #36186C
triadic
#18246C #6C1824 #246C18
tetradic
#18246C #6C184E #6C6018 #186C36
square
#18246C #6C184E #6C6018 #186C36
split-complementary
#18246C #6C3618 #4E6C18
monochromatic
#060819 #0D133A #18246C #23359E #2E45D0

Accessibility & contrast

On white

13.93
#18246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#18246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18246C
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18246C#FFFFFF#000000##FFFFFF
##18246C1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18246c;
/* rgb */ color: rgb(24, 36, 108);
/* oklch */ color: oklch(30.3% 0.125 269.8);
Tailwind
colors: {
  custom: {
    50: '#635e97',
    500: '#18246c',
    950: '#000000',
  },
}
SCSS
$custom: #18246c;
$custom-light: #635e97;
$custom-dark: #000000;
JSON
{
  "hex": "#18246c",
  "rgb": {
    "r": 24,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 231.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30285,
    "c": 0.12516,
    "h": 269.8
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#18246C
secondary
#A2943E
accent
#CF41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18246C

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

Preview Lab → · Contrast checker → · Palette generator →

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