#18276D#18276D

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

Color values

HEX#18276D
RGBrgb(24, 39, 109)
HSLhsl(229, 64%, 26%)
HSVhsv(229, 78%, 43%)
CMYKcmyk(78%, 64.2%, 0%, 57.3%)
CIE-LABlab(19.01, 20.99, -42.45)
CIE-LCHlch(19.01, 47.36, 296.31°)
OKLaboklab(30.99% -0.0027 -0.1226)
OKLCHoklch(30.99% 0.123 268.7)
XYZxyz(3.8616, 2.7489, 14.7921)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18276D #6D5E18
analogous
#18516D #18276D #33186D
triadic
#18276D #6D1827 #276D18
tetradic
#18276D #6D1851 #6D5E18 #186D33
square
#18276D #6D1851 #6D5E18 #186D33
split-complementary
#18276D #6D3318 #516D18
monochromatic
#060919 #0D153B #18276D #23399F #2E4BD1

Accessibility & contrast

On white

13.55
#18276D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18276D
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18276D#FFFFFF#000000##FFFFFF
##18276D1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18276d;
/* rgb */ color: rgb(24, 39, 109);
/* oklch */ color: oklch(31.0% 0.123 268.7);
Tailwind
colors: {
  custom: {
    50: '#636098',
    500: '#18276d',
    950: '#000000',
  },
}
SCSS
$custom: #18276d;
$custom-light: #636098;
$custom-dark: #000000;
JSON
{
  "hex": "#18276d",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 109
  },
  "hsl": {
    "h": 229.412,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30992,
    "c": 0.12266,
    "h": 268.7
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#18276D
secondary
#A3913E
accent
#CA41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #18276D

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

Preview Lab → · Contrast checker → · Palette generator →

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