#12255F#12255F

#12255F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.106 H 266.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#12255F
RGBrgb(18, 37, 95)
HSLhsl(225, 68%, 22%)
HSVhsv(225, 81%, 37%)
CMYKcmyk(81.1%, 61.1%, 0%, 62.7%)
CIE-LABlab(16.88, 15.86, -36.76)
CIE-LCHlch(16.88, 40.03, 293.34°)
OKLaboklab(28.93% -0.0073 -0.1061)
OKLCHoklch(28.93% 0.106 266.1)
XYZxyz(2.9759, 2.2776, 11.1070)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12255F #5F4C12
analogous
#124C5F #12255F #26125F
triadic
#12255F #5F1225 #255F12
tetradic
#12255F #5F124C #5F4C12 #125F26
square
#12255F #5F124C #5F4C12 #125F26
split-complementary
#12255F #5F2612 #4C5F12
monochromatic
#050A1A #08112C #12255F #1C3992 #254DC6

Accessibility & contrast

On white

14.43
#12255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#12255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12255F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12255F#FFFFFF#000000##FFFFFF
##12255F1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00265E
Tritanopia (blue-blind)
#00333E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12255f;
/* rgb */ color: rgb(18, 37, 95);
/* oklch */ color: oklch(28.9% 0.106 266.1);
Tailwind
colors: {
  custom: {
    50: '#5d5f8d',
    500: '#12255f',
    950: '#000000',
  },
}
SCSS
$custom: #12255f;
$custom-light: #5d5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#12255f",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 225.195,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28933,
    "c": 0.10632,
    "h": 266.1
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#12255F
secondary
#977F36
accent
#C03DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12255F

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

Preview Lab → · Contrast checker → · Palette generator →

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