#12255C#12255C

#12255C is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.102 H 265.8°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#12255C
RGBrgb(18, 37, 92)
HSLhsl(225, 67%, 22%)
HSVhsv(225, 80%, 36%)
CMYKcmyk(80.4%, 59.8%, 0%, 63.9%)
CIE-LABlab(16.62, 14.58, -35.19)
CIE-LCHlch(16.62, 38.09, 292.51°)
OKLaboklab(28.66% -0.0075 -0.1014)
OKLCHoklch(28.66% 0.102 265.8)
XYZxyz(2.8421, 2.2241, 10.4027)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12255C #5C4912
analogous
#124A5C #12255C #24125C
triadic
#12255C #5C1225 #255C12
tetradic
#12255C #5C124A #5C4912 #125C24
square
#12255C #5C124A #5C4912 #125C24
split-complementary
#12255C #5C2412 #4A5C12
monochromatic
#050A1A #081029 #12255C #1C3A8F #264EC2

Accessibility & contrast

On white

14.53
#12255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12255C
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12255C#FFFFFF#000000##FFFFFF
##12255C1.0014.531.4414.53
#FFFFFF14.531.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#00333C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12255c;
/* rgb */ color: rgb(18, 37, 92);
/* oklch */ color: oklch(28.7% 0.102 265.8);
Tailwind
colors: {
  custom: {
    50: '#5d5f8b',
    500: '#12255c',
    950: '#000000',
  },
}
SCSS
$custom: #12255c;
$custom-light: #5d5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12255c",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 224.595,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28656,
    "c": 0.10173,
    "h": 265.8
  },
  "luminance": 0.02224
}

Semantic roles & 50–950 ramp

primary
#12255C
secondary
#947C35
accent
#BE3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12255C

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

Preview Lab → · Contrast checker → · Palette generator →

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