#18268F#18268F

#18268F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.171 H 268.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#18268F
RGBrgb(24, 38, 143)
HSLhsl(233, 71%, 33%)
HSVhsv(233, 83%, 56%)
CMYKcmyk(83.2%, 73.4%, 0%, 43.9%)
CIE-LABlab(22.17, 34.85, -58.83)
CIE-LCHlch(22.17, 68.37, 300.64°)
OKLaboklab(34.33% -0.0046 -0.1705)
OKLCHoklch(34.33% 0.171 268.4)
XYZxyz(6.0260, 3.5629, 26.3514)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18268F #8F8118
analogous
#18618F #18268F #45188F
triadic
#18268F #8F1826 #268F18
tetradic
#18268F #8F1861 #8F8118 #188F45
square
#18268F #8F1861 #8F8118 #188F45
split-complementary
#18268F #8F4518 #618F18
monochromatic
#060A26 #0F185B #18268F #2134C3 #4255DF

Accessibility & contrast

On white

12.26
#18268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#18268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18268F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18268F#FFFFFF#000000##FFFFFF
##18268F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #18268f;
/* rgb */ color: rgb(24, 38, 143);
/* oklch */ color: oklch(34.3% 0.171 268.4);
Tailwind
colors: {
  custom: {
    50: '#6d61b1',
    500: '#18268f',
    950: '#000000',
  },
}
SCSS
$custom: #18268f;
$custom-light: #6d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18268f",
  "rgb": {
    "r": 24,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 232.941,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34333,
    "c": 0.17052,
    "h": 268.4
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#18268F
secondary
#C0B143
accent
#D93AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #18268F

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

Preview Lab → · Contrast checker → · Palette generator →

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