#18276B#18276B

#18276B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.8% C 0.120 H 268.7°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#18276B
RGBrgb(24, 39, 107)
HSLhsl(229, 63%, 26%)
HSVhsv(229, 78%, 42%)
CMYKcmyk(77.6%, 63.6%, 0%, 58%)
CIE-LABlab(18.83, 20.17, -41.45)
CIE-LCHlch(18.83, 46.10, 295.95°)
OKLaboklab(30.8% -0.0027 -0.1197)
OKLCHoklch(30.8% 0.12 268.7)
XYZxyz(3.7551, 2.7064, 14.2315)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18276B #6B5C18
analogous
#18506B #18276B #32186B
triadic
#18276B #6B1827 #276B18
tetradic
#18276B #6B1850 #6B5C18 #186B32
square
#18276B #6B1850 #6B5C18 #186B32
split-complementary
#18276B #6B3218 #506B18
monochromatic
#060919 #0D1539 #18276B #23399D #2E4BCF

Accessibility & contrast

On white

13.62
#18276B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18276B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18276B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18276B#FFFFFF#000000##FFFFFF
##18276B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18276b;
/* rgb */ color: rgb(24, 39, 107);
/* oklch */ color: oklch(30.8% 0.120 268.7);
Tailwind
colors: {
  custom: {
    50: '#636096',
    500: '#18276b',
    950: '#000000',
  },
}
SCSS
$custom: #18276b;
$custom-light: #636096;
$custom-dark: #000000;
JSON
{
  "hex": "#18276b",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 107
  },
  "hsl": {
    "h": 229.157,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30801,
    "c": 0.11972,
    "h": 268.7
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#18276B
secondary
#A18F3E
accent
#C941E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #18276B

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

Preview Lab → · Contrast checker → · Palette generator →

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