#12267E#12267E

#12267E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.150 H 266.8°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#12267E
RGBrgb(18, 38, 126)
HSLhsl(229, 75%, 28%)
HSVhsv(229, 86%, 49%)
CMYKcmyk(85.7%, 69.8%, 0%, 50.6%)
CIE-LABlab(20.13, 27.90, -51.53)
CIE-LCHlch(20.13, 58.60, 298.43°)
OKLaboklab(32.25% -0.0083 -0.1493)
OKLCHoklch(32.25% 0.15 266.8)
XYZxyz(4.7071, 3.0206, 20.0696)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12267E #7E6A12
analogous
#125C7E #12267E #34127E
triadic
#12267E #7E1226 #267E12
tetradic
#12267E #7E125C #7E6A12 #127E34
square
#12267E #7E125C #7E6A12 #127E34
split-complementary
#12267E #7E3412 #5C7E12
monochromatic
#04081B #0A1648 #12267E #1A36B4 #2A4CE1

Accessibility & contrast

On white

13.09
#12267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#12267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12267E
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12267E#FFFFFF#000000##FFFFFF
##12267E1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #12267e;
/* rgb */ color: rgb(18, 38, 126);
/* oklch */ color: oklch(32.2% 0.150 266.8);
Tailwind
colors: {
  custom: {
    50: '#6660a4',
    500: '#12267e',
    950: '#000000',
  },
}
SCSS
$custom: #12267e;
$custom-light: #6660a4;
$custom-dark: #000000;
JSON
{
  "hex": "#12267e",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 228.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32245,
    "c": 0.14956,
    "h": 266.8
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#12267E
secondary
#B49D38
accent
#CF36F2
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #12267E

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

Preview Lab → · Contrast checker → · Palette generator →

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