#18266C#18266C

#18266C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.7% C 0.123 H 269.1°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#18266C
RGBrgb(24, 38, 108)
HSLhsl(230, 64%, 26%)
HSVhsv(230, 78%, 42%)
CMYKcmyk(77.8%, 64.8%, 0%, 57.6%)
CIE-LABlab(18.64, 21.30, -42.41)
CIE-LCHlch(18.64, 47.46, 296.66°)
OKLaboklab(30.69% -0.002 -0.1225)
OKLCHoklch(30.69% 0.123 269.1)
XYZxyz(3.7756, 2.6627, 14.4994)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18266C #6C5E18
analogous
#18506C #18266C #34186C
triadic
#18266C #6C1826 #266C18
tetradic
#18266C #6C1850 #6C5E18 #186C34
square
#18266C #6C1850 #6C5E18 #186C34
split-complementary
#18266C #6C3418 #506C18
monochromatic
#060919 #0D143A #18266C #23389E #2E49D0

Accessibility & contrast

On white

13.70
#18266C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#18266C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18266C
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18266C#FFFFFF#000000##FFFFFF
##18266C1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18266c;
/* rgb */ color: rgb(24, 38, 108);
/* oklch */ color: oklch(30.7% 0.123 269.1);
Tailwind
colors: {
  custom: {
    50: '#636097',
    500: '#18266c',
    950: '#000000',
  },
}
SCSS
$custom: #18266c;
$custom-light: #636097;
$custom-dark: #000000;
JSON
{
  "hex": "#18266c",
  "rgb": {
    "r": 24,
    "g": 38,
    "b": 108
  },
  "hsl": {
    "h": 230,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3069,
    "c": 0.12253,
    "h": 269.1
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#18266C
secondary
#A2913E
accent
#CB41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18266C

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

Preview Lab → · Contrast checker → · Palette generator →

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