#12297E#12297E

#12297E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.146 H 266.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#12297E
RGBrgb(18, 41, 126)
HSLhsl(227, 75%, 28%)
HSVhsv(227, 86%, 49%)
CMYKcmyk(85.7%, 67.5%, 0%, 50.6%)
CIE-LABlab(20.91, 25.83, -50.25)
CIE-LCHlch(20.91, 56.50, 297.20°)
OKLaboklab(32.82% -0.0098 -0.1456)
OKLCHoklch(32.82% 0.146 266.2)
XYZxyz(4.8070, 3.2202, 20.1028)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12297E #7E6712
analogous
#125F7E #12297E #31127E
triadic
#12297E #7E1229 #297E12
tetradic
#12297E #7E125F #7E6712 #127E31
square
#12297E #7E125F #7E6712 #127E31
split-complementary
#12297E #7E3112 #5F7E12
monochromatic
#04091B #0A1848 #12297E #1A3AB4 #2A51E1

Accessibility & contrast

On white

12.77
#12297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#12297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12297E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12297E#FFFFFF#000000##FFFFFF
##12297E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #12297e;
/* rgb */ color: rgb(18, 41, 126);
/* oklch */ color: oklch(32.8% 0.146 266.2);
Tailwind
colors: {
  custom: {
    50: '#6662a4',
    500: '#12297e',
    950: '#000000',
  },
}
SCSS
$custom: #12297e;
$custom-light: #6662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12297e",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 227.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32816,
    "c": 0.1459,
    "h": 266.2
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#12297E
secondary
#B49938
accent
#CA36F2
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #12297E

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

Preview Lab → · Contrast checker → · Palette generator →

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