#12265C#12265C

#12265C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.100 H 265.2°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#12265C
RGBrgb(18, 38, 92)
HSLhsl(224, 67%, 22%)
HSVhsv(224, 80%, 36%)
CMYKcmyk(80.4%, 58.7%, 0%, 63.9%)
CIE-LABlab(16.93, 13.84, -34.69)
CIE-LCHlch(16.93, 37.35, 291.75°)
OKLaboklab(28.89% -0.0084 -0.1)
OKLCHoklch(28.89% 0.1 265.2)
XYZxyz(2.8737, 2.2872, 10.4132)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12265C #5C4812
analogous
#124B5C #12265C #23125C
triadic
#12265C #5C1226 #265C12
tetradic
#12265C #5C124B #5C4812 #125C23
square
#12265C #5C124B #5C4812 #125C23
split-complementary
#12265C #5C2312 #4B5C12
monochromatic
#050B1A #081129 #12265C #1C3B8F #2650C2

Accessibility & contrast

On white

14.41
#12265C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#12265C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12265C
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12265C#FFFFFF#000000##FFFFFF
##12265C1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12265c;
/* rgb */ color: rgb(18, 38, 92);
/* oklch */ color: oklch(28.9% 0.100 265.2);
Tailwind
colors: {
  custom: {
    50: '#5c5f8b',
    500: '#12265c',
    950: '#000000',
  },
}
SCSS
$custom: #12265c;
$custom-light: #5c5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12265c",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 92
  },
  "hsl": {
    "h": 223.784,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28887,
    "c": 0.10032,
    "h": 265.2
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#12265C
secondary
#947B35
accent
#BC3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12265C

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

Preview Lab → · Contrast checker → · Palette generator →

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