#12255E#12255E

#12255E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.105 H 266.0°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#12255E
RGBrgb(18, 37, 94)
HSLhsl(225, 68%, 22%)
HSVhsv(225, 81%, 37%)
CMYKcmyk(80.9%, 60.6%, 0%, 63.1%)
CIE-LABlab(16.79, 15.43, -36.24)
CIE-LCHlch(16.79, 39.38, 293.07°)
OKLaboklab(28.84% -0.0074 -0.1045)
OKLCHoklch(28.84% 0.105 266)
XYZxyz(2.9307, 2.2596, 10.8692)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12255E #5E4B12
analogous
#124B5E #12255E #25125E
triadic
#12255E #5E1225 #255E12
tetradic
#12255E #5E124B #5E4B12 #125E25
square
#12255E #5E124B #5E4B12 #125E25
split-complementary
#12255E #5E2512 #4B5E12
monochromatic
#050A1A #08112B #12255E #1C3991 #264DC5

Accessibility & contrast

On white

14.46
#12255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#12255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12255E
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12255E#FFFFFF#000000##FFFFFF
##12255E1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12255e;
/* rgb */ color: rgb(18, 37, 94);
/* oklch */ color: oklch(28.8% 0.105 266.0);
Tailwind
colors: {
  custom: {
    50: '#5d5f8c',
    500: '#12255e',
    950: '#000000',
  },
}
SCSS
$custom: #12255e;
$custom-light: #5d5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#12255e",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 225,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2884,
    "c": 0.1048,
    "h": 266
  },
  "luminance": 0.0226
}

Semantic roles & 50–950 ramp

primary
#12255E
secondary
#967E35
accent
#BF3DEB
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12255E

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

Preview Lab → · Contrast checker → · Palette generator →

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