#12275C#12275C

#12275C is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.099 H 264.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#12275C
RGBrgb(18, 39, 92)
HSLhsl(223, 67%, 22%)
HSVhsv(223, 80%, 36%)
CMYKcmyk(80.4%, 57.6%, 0%, 63.9%)
CIE-LABlab(17.24, 13.09, -34.19)
CIE-LCHlch(17.24, 36.61, 290.95°)
OKLaboklab(29.12% -0.0092 -0.0985)
OKLCHoklch(29.12% 0.099 264.6)
XYZxyz(2.9061, 2.3520, 10.4240)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12275C #5C4712
analogous
#124C5C #12275C #22125C
triadic
#12275C #5C1227 #275C12
tetradic
#12275C #5C124C #5C4712 #125C22
square
#12275C #5C124C #5C4712 #125C22
split-complementary
#12275C #5C2212 #4C5C12
monochromatic
#050B1A #081129 #12275C #1C3D8F #2652C2

Accessibility & contrast

On white

14.28
#12275C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#12275C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12275C
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12275C#FFFFFF#000000##FFFFFF
##12275C1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012E5E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#00343D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12275c;
/* rgb */ color: rgb(18, 39, 92);
/* oklch */ color: oklch(29.1% 0.099 264.6);
Tailwind
colors: {
  custom: {
    50: '#5c608b',
    500: '#12275c',
    950: '#000000',
  },
}
SCSS
$custom: #12275c;
$custom-light: #5c608b;
$custom-dark: #000000;
JSON
{
  "hex": "#12275c",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 92
  },
  "hsl": {
    "h": 222.973,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2912,
    "c": 0.09891,
    "h": 264.6
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#12275C
secondary
#947935
accent
#B93EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12275C

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

Preview Lab → · Contrast checker → · Palette generator →

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