#180F6F#180F6F

#180F6F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.3% C 0.152 H 273.8°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#180F6F
RGBrgb(24, 15, 111)
HSLhsl(246, 76%, 25%)
HSVhsv(246, 86%, 44%)
CMYKcmyk(78.4%, 86.5%, 0%, 56.5%)
CIE-LABlab(13.73, 36.86, -52.45)
CIE-LCHlch(13.73, 64.11, 305.10°)
OKLaboklab(27.27% 0.01 -0.1517)
OKLCHoklch(27.27% 0.152 273.8)
XYZxyz(3.4158, 1.6832, 15.1807)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F6F #666F0F
analogous
#0F366F #180F6F #480F6F
triadic
#180F6F #6F180F #0F6F18
tetradic
#180F6F #6F0F36 #666F0F #0F6F48
square
#180F6F #6F0F36 #666F0F #0F6F48
split-complementary
#180F6F #6F480F #366F0F
monochromatic
#06041B #0C0839 #180F6F #2416A5 #2F1EDB

Accessibility & contrast

On white

15.71
#180F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#180F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F6F
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F6F#FFFFFF#000000##FFFFFF
##180F6F1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002772
Deuteranopia (green-blind)
#001E6D
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #180f6f;
/* rgb */ color: rgb(24, 15, 111);
/* oklch */ color: oklch(27.3% 0.152 273.8);
Tailwind
colors: {
  custom: {
    50: '#66519a',
    500: '#180f6f',
    950: '#000000',
  },
}
SCSS
$custom: #180f6f;
$custom-light: #66519a;
$custom-dark: #000000;
JSON
{
  "hex": "#180f6f",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 111
  },
  "hsl": {
    "h": 245.625,
    "s": 76.19,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27267,
    "c": 0.15202,
    "h": 273.8
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#180F6F
secondary
#9CA733
accent
#F335E1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #180F6F

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

Preview Lab → · Contrast checker → · Palette generator →

#180F6F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva