#18276C#18276C

#18276C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.121 H 268.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#18276C
RGBrgb(24, 39, 108)
HSLhsl(229, 64%, 26%)
HSVhsv(229, 78%, 42%)
CMYKcmyk(77.8%, 63.9%, 0%, 57.6%)
CIE-LABlab(18.92, 20.58, -41.95)
CIE-LCHlch(18.92, 46.73, 296.13°)
OKLaboklab(30.9% -0.0027 -0.1212)
OKLCHoklch(30.9% 0.121 268.7)
XYZxyz(3.8080, 2.7275, 14.5102)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18276C #6C5D18
analogous
#18516C #18276C #33186C
triadic
#18276C #6C1827 #276C18
tetradic
#18276C #6C1851 #6C5D18 #186C33
square
#18276C #6C1851 #6C5D18 #186C33
split-complementary
#18276C #6C3318 #516C18
monochromatic
#060919 #0D153A #18276C #23399E #2E4BD0

Accessibility & contrast

On white

13.59
#18276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18276C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18276C
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18276C#FFFFFF#000000##FFFFFF
##18276C1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18276c;
/* rgb */ color: rgb(24, 39, 108);
/* oklch */ color: oklch(30.9% 0.121 268.7);
Tailwind
colors: {
  custom: {
    50: '#636097',
    500: '#18276c',
    950: '#000000',
  },
}
SCSS
$custom: #18276c;
$custom-light: #636097;
$custom-dark: #000000;
JSON
{
  "hex": "#18276c",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 229.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30896,
    "c": 0.1212,
    "h": 268.7
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#18276C
secondary
#A2903E
accent
#C941E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #18276C

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

Preview Lab → · Contrast checker → · Palette generator →

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