#18276F#18276F

#18276F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.126 H 268.7°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#18276F
RGBrgb(24, 39, 111)
HSLhsl(230, 64%, 26%)
HSVhsv(230, 78%, 44%)
CMYKcmyk(78.4%, 64.9%, 0%, 56.5%)
CIE-LABlab(19.19, 21.80, -43.45)
CIE-LCHlch(19.19, 48.61, 296.64°)
OKLaboklab(31.19% -0.0028 -0.1255)
OKLCHoklch(31.19% 0.126 268.7)
XYZxyz(3.9705, 2.7925, 15.3656)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18276F #6F6018
analogous
#18536F #18276F #35186F
triadic
#18276F #6F1827 #276F18
tetradic
#18276F #6F1853 #6F6018 #186F35
square
#18276F #6F1853 #6F6018 #186F35
split-complementary
#18276F #6F3518 #536F18
monochromatic
#050919 #0D153D #18276F #2339A1 #2F4BD2

Accessibility & contrast

On white

13.47
#18276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#18276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18276F
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18276F#FFFFFF#000000##FFFFFF
##18276F1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18276f;
/* rgb */ color: rgb(24, 39, 111);
/* oklch */ color: oklch(31.2% 0.126 268.7);
Tailwind
colors: {
  custom: {
    50: '#646099',
    500: '#18276f',
    950: '#000000',
  },
}
SCSS
$custom: #18276f;
$custom-light: #646099;
$custom-dark: #000000;
JSON
{
  "hex": "#18276f",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 229.655,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31185,
    "c": 0.12558,
    "h": 268.7
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#18276F
secondary
#A5933E
accent
#CB40E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #18276F

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

Preview Lab → · Contrast checker → · Palette generator →

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