#18296B#18296B

#18296B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.2% C 0.117 H 267.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#18296B
RGBrgb(24, 41, 107)
HSLhsl(228, 63%, 26%)
HSVhsv(228, 78%, 42%)
CMYKcmyk(77.6%, 61.7%, 0%, 58%)
CIE-LABlab(19.40, 18.74, -40.52)
CIE-LCHlch(19.40, 44.65, 294.81°)
OKLaboklab(31.22% -0.0043 -0.1169)
OKLCHoklch(31.22% 0.117 267.9)
XYZxyz(3.8225, 2.8412, 14.2540)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18296B #6B5A18
analogous
#18526B #18296B #30186B
triadic
#18296B #6B1829 #296B18
tetradic
#18296B #6B1852 #6B5A18 #186B30
square
#18296B #6B1852 #6B5A18 #186B30
split-complementary
#18296B #6B3018 #526B18
monochromatic
#060A19 #0D1639 #18296B #233C9D #2E4FCF

Accessibility & contrast

On white

13.39
#18296B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#18296B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18296B
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18296B#FFFFFF#000000##FFFFFF
##18296B1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003A45
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18296b;
/* rgb */ color: rgb(24, 41, 107);
/* oklch */ color: oklch(31.2% 0.117 267.9);
Tailwind
colors: {
  custom: {
    50: '#626296',
    500: '#18296b',
    950: '#000000',
  },
}
SCSS
$custom: #18296b;
$custom-light: #626296;
$custom-dark: #000000;
JSON
{
  "hex": "#18296b",
  "rgb": {
    "r": 24,
    "g": 41,
    "b": 107
  },
  "hsl": {
    "h": 227.711,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31224,
    "c": 0.11702,
    "h": 267.9
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#18296B
secondary
#A18D3E
accent
#C541E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #18296B

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

Preview Lab → · Contrast checker → · Palette generator →

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