#12255B#12255B

#12255B is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.100 H 265.7°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#12255B
RGBrgb(18, 37, 91)
HSLhsl(224, 67%, 21%)
HSVhsv(224, 80%, 36%)
CMYKcmyk(80.2%, 59.3%, 0%, 64.3%)
CIE-LABlab(16.54, 14.15, -34.66)
CIE-LCHlch(16.54, 37.44, 292.21°)
OKLaboklab(28.57% -0.0076 -0.0999)
OKLCHoklch(28.57% 0.1 265.7)
XYZxyz(2.7987, 2.2068, 10.1739)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12255B #5B4812
analogous
#124A5B #12255B #24125B
triadic
#12255B #5B1225 #255B12
tetradic
#12255B #5B124A #5B4812 #125B24
square
#12255B #5B124A #5B4812 #125B24
split-complementary
#12255B #5B2412 #4A5B12
monochromatic
#050A1A #081028 #12255B #1C3A8E #264FC1

Accessibility & contrast

On white

14.57
#12255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#12255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12255B
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12255B#FFFFFF#000000##FFFFFF
##12255B1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12255b;
/* rgb */ color: rgb(18, 37, 91);
/* oklch */ color: oklch(28.6% 0.100 265.7);
Tailwind
colors: {
  custom: {
    50: '#5c5f8a',
    500: '#12255b',
    950: '#000000',
  },
}
SCSS
$custom: #12255b;
$custom-light: #5c5f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12255b",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 224.384,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28565,
    "c": 0.10019,
    "h": 265.7
  },
  "luminance": 0.02207
}

Semantic roles & 50–950 ramp

primary
#12255B
secondary
#937B35
accent
#BD3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12255B

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

Preview Lab → · Contrast checker → · Palette generator →

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