#12368E#12368E

#12368E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.152 H 263.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#12368E
RGBrgb(18, 54, 142)
HSLhsl(223, 78%, 31%)
HSVhsv(223, 87%, 56%)
CMYKcmyk(87.3%, 62%, 0%, 44.3%)
CIE-LABlab(25.92, 23.25, -52.05)
CIE-LCHlch(25.92, 57.01, 294.07°)
OKLaboklab(36.99% -0.0167 -0.1507)
OKLCHoklch(36.99% 0.152 263.7)
XYZxyz(6.4494, 4.7191, 26.1569)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12368E #8E6A12
analogous
#12748E #12368E #2C128E
triadic
#12368E #8E1236 #368E12
tetradic
#12368E #8E1274 #8E6A12 #128E2C
square
#12368E #8E1274 #8E6A12 #128E2C
split-complementary
#12368E #8E2C12 #748E12
monochromatic
#040D21 #0B2158 #12368E #194BC4 #3568E5

Accessibility & contrast

On white

10.80
#12368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#12368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12368E
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12368E#FFFFFF#000000##FFFFFF
##12368E1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #12368e;
/* rgb */ color: rgb(18, 54, 142);
/* oklch */ color: oklch(37.0% 0.152 263.7);
Tailwind
colors: {
  custom: {
    50: '#696cb0',
    500: '#12368e',
    950: '#000000',
  },
}
SCSS
$custom: #12368e;
$custom-light: #696cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#12368e",
  "rgb": {
    "r": 18,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 222.581,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36993,
    "c": 0.15159,
    "h": 263.7
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#12368E
secondary
#C29B3A
accent
#BC34F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080711
muted
#7A7A80

Preview Lab

Preview with #12368E

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

Preview Lab → · Contrast checker → · Palette generator →

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