#12275A#12275A

#12275A is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.096 H 264.3°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#12275A
RGBrgb(18, 39, 90)
HSLhsl(223, 67%, 21%)
HSVhsv(223, 80%, 35%)
CMYKcmyk(80%, 56.7%, 0%, 64.7%)
CIE-LABlab(17.07, 12.23, -33.12)
CIE-LCHlch(17.07, 35.31, 290.27°)
OKLaboklab(28.94% -0.0094 -0.0953)
OKLCHoklch(28.94% 0.096 264.3)
XYZxyz(2.8198, 2.3175, 9.9696)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12275A #5A4512
analogous
#124B5A #12275A #21125A
triadic
#12275A #5A1227 #275A12
tetradic
#12275A #5A124B #5A4512 #125A21
square
#12275A #5A124B #5A4512 #125A21
split-complementary
#12275A #5A2112 #4B5A12
monochromatic
#050B1A #081127 #12275A #1C3D8D #2653C0

Accessibility & contrast

On white

14.35
#12275A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#12275A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12275A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12275A#FFFFFF#000000##FFFFFF
##12275A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#00333C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12275a;
/* rgb */ color: rgb(18, 39, 90);
/* oklch */ color: oklch(28.9% 0.096 264.3);
Tailwind
colors: {
  custom: {
    50: '#5c6089',
    500: '#12275a',
    950: '#000000',
  },
}
SCSS
$custom: #12275a;
$custom-light: #5c6089;
$custom-dark: #000000;
JSON
{
  "hex": "#12275a",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 90
  },
  "hsl": {
    "h": 222.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28944,
    "c": 0.09581,
    "h": 264.3
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

primary
#12275A
secondary
#937735
accent
#B83EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #12275A

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

Preview Lab → · Contrast checker → · Palette generator →

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