#18297E#18297E

#18297E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.144 H 268.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#18297E
RGBrgb(24, 41, 126)
HSLhsl(230, 68%, 29%)
HSVhsv(230, 81%, 49%)
CMYKcmyk(81%, 67.5%, 0%, 50.6%)
CIE-LABlab(21.15, 26.37, -49.84)
CIE-LCHlch(21.15, 56.38, 297.89°)
OKLaboklab(33.07% -0.0046 -0.1442)
OKLCHoklch(33.07% 0.144 268.2)
XYZxyz(4.9342, 3.2859, 20.1088)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18297E #7E6D18
analogous
#185C7E #18297E #3A187E
triadic
#18297E #7E1829 #297E18
tetradic
#18297E #7E185C #7E6D18 #187E3A
square
#18297E #7E185C #7E6D18 #187E3A
split-complementary
#18297E #7E3A18 #5C7E18
monochromatic
#05081A #0E184B #18297E #223AB1 #3752D9

Accessibility & contrast

On white

12.67
#18297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#18297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18297E
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18297E#FFFFFF#000000##FFFFFF
##18297E1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18297e;
/* rgb */ color: rgb(24, 41, 126);
/* oklch */ color: oklch(33.1% 0.144 268.2);
Tailwind
colors: {
  custom: {
    50: '#6862a4',
    500: '#18297e',
    950: '#000000',
  },
}
SCSS
$custom: #18297e;
$custom-light: #6862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18297e",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 230,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33068,
    "c": 0.14431,
    "h": 268.2
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#18297E
secondary
#B29F3F
accent
#CE3DEB
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18297E

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

Preview Lab → · Contrast checker → · Palette generator →

#18297E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva