#12378F#12378F

#12378F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.152 H 263.5°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#12378F
RGBrgb(18, 55, 143)
HSLhsl(222, 78%, 32%)
HSVhsv(222, 87%, 56%)
CMYKcmyk(87.4%, 61.5%, 0%, 43.9%)
CIE-LABlab(26.28, 22.96, -52.08)
CIE-LCHlch(26.28, 56.91, 293.79°)
OKLaboklab(37.29% -0.0172 -0.1507)
OKLCHoklch(37.29% 0.152 263.5)
XYZxyz(6.5718, 4.8433, 26.5698)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12378F #8F6A12
analogous
#12768F #12378F #2C128F
triadic
#12378F #8F1237 #378F12
tetradic
#12378F #8F1276 #8F6A12 #128F2C
square
#12378F #8F1276 #8F6A12 #128F2C
split-complementary
#12378F #8F2C12 #768F12
monochromatic
#040D22 #0B2259 #12378F #194CC5 #366AE6

Accessibility & contrast

On white

10.67
#12378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#12378F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12378F
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12378F#FFFFFF#000000##FFFFFF
##12378F1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #12378f;
/* rgb */ color: rgb(18, 55, 143);
/* oklch */ color: oklch(37.3% 0.152 263.5);
Tailwind
colors: {
  custom: {
    50: '#6a6db1',
    500: '#12378f',
    950: '#000000',
  },
}
SCSS
$custom: #12378f;
$custom-light: #6a6db1;
$custom-dark: #000000;
JSON
{
  "hex": "#12378f",
  "rgb": {
    "r": 18,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 222.24,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37293,
    "c": 0.1517,
    "h": 263.5
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#12378F
secondary
#C39A3A
accent
#BB34F4
background
#F6F6FB
surface
#ECEBF6
border
#C7C6D0
text
#080711
muted
#7A7A80

Preview Lab

Preview with #12378F

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

Preview Lab → · Contrast checker → · Palette generator →

#12378F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva