#18275F#18275F

#18275F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.102 H 268.3°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#18275F
RGBrgb(24, 39, 95)
HSLhsl(227, 60%, 23%)
HSVhsv(227, 75%, 37%)
CMYKcmyk(74.7%, 58.9%, 0%, 62.7%)
CIE-LABlab(17.79, 15.26, -35.27)
CIE-LCHlch(17.79, 38.43, 293.40°)
OKLaboklab(29.7% -0.0031 -0.1015)
OKLCHoklch(29.7% 0.102 268.3)
XYZxyz(3.1671, 2.4711, 11.1343)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18275F #5F5018
analogous
#184A5F #18275F #2C185F
triadic
#18275F #5F1827 #275F18
tetradic
#18275F #5F184A #5F5018 #185F2C
square
#18275F #5F184A #5F5018 #185F2C
split-complementary
#18275F #5F2C18 #4A5F18
monochromatic
#060A18 #0C132E #18275F #243B90 #314FC1

Accessibility & contrast

On white

14.05
#18275F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#18275F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18275F
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18275F#FFFFFF#000000##FFFFFF
##18275F1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18275f;
/* rgb */ color: rgb(24, 39, 95);
/* oklch */ color: oklch(29.7% 0.102 268.3);
Tailwind
colors: {
  custom: {
    50: '#5f608d',
    500: '#18275f',
    950: '#000000',
  },
}
SCSS
$custom: #18275f;
$custom-light: #5f608d;
$custom-dark: #000000;
JSON
{
  "hex": "#18275f",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 95
  },
  "hsl": {
    "h": 227.324,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29698,
    "c": 0.10158,
    "h": 268.3
  },
  "luminance": 0.02471
}

Semantic roles & 50–950 ramp

primary
#18275F
secondary
#95833D
accent
#C145E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #18275F

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

Preview Lab → · Contrast checker → · Palette generator →

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