#181262#181262

#181262 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.1% C 0.133 H 275.3°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#181262
RGBrgb(24, 18, 98)
HSLhsl(245, 69%, 23%)
HSVhsv(245, 82%, 38%)
CMYKcmyk(75.5%, 81.6%, 0%, 61.6%)
CIE-LABlab(12.66, 30.82, -45.66)
CIE-LCHlch(12.66, 55.09, 304.02°)
OKLaboklab(26.05% 0.0123 -0.132)
OKLCHoklch(26.05% 0.133 275.3)
XYZxyz(2.7969, 1.5084, 11.6967)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181262 #5C6212
analogous
#123462 #181262 #401262
triadic
#181262 #621812 #126218
tetradic
#181262 #621234 #5C6212 #126240
square
#181262 #621234 #5C6212 #126240
split-complementary
#181262 #624012 #346212
monochromatic
#06051A #0B092E #181262 #251B96 #3125C9

Accessibility & contrast

On white

16.13
#181262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181262
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181262#FFFFFF#000000##FFFFFF
##1812621.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001D61
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181262;
/* rgb */ color: rgb(24, 18, 98);
/* oklch */ color: oklch(26.1% 0.133 275.3);
Tailwind
colors: {
  custom: {
    50: '#625190',
    500: '#181262',
    950: '#000000',
  },
}
SCSS
$custom: #181262;
$custom-light: #625190;
$custom-dark: #000000;
JSON
{
  "hex": "#181262",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 244.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2605,
    "c": 0.13259,
    "h": 275.3
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#181262
secondary
#939A36
accent
#EC3CDF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #181262

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

Preview Lab → · Contrast checker → · Palette generator →

#181262 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva