#12368C#12368C

#12368C is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.8% C 0.149 H 263.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#12368C
RGBrgb(18, 54, 140)
HSLhsl(222, 77%, 31%)
HSVhsv(222, 87%, 55%)
CMYKcmyk(87.1%, 61.4%, 0%, 45.1%)
CIE-LABlab(25.74, 22.43, -51.11)
CIE-LCHlch(25.74, 55.81, 293.70°)
OKLaboklab(36.81% -0.0168 -0.1479)
OKLCHoklch(36.81% 0.149 263.5)
XYZxyz(6.3006, 4.6596, 25.3732)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12368C #8C6812
analogous
#12738C #12368C #2B128C
triadic
#12368C #8C1236 #368C12
tetradic
#12368C #8C1273 #8C6812 #128C2B
square
#12368C #8C1273 #8C6812 #128C2B
split-complementary
#12368C #8C2B12 #738C12
monochromatic
#040C20 #0B2156 #12368C #194BC2 #3468E5

Accessibility & contrast

On white

10.87
#12368C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#12368C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12368C
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12368C#FFFFFF#000000##FFFFFF
##12368C1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #12368c;
/* rgb */ color: rgb(18, 54, 140);
/* oklch */ color: oklch(36.8% 0.149 263.5);
Tailwind
colors: {
  custom: {
    50: '#696cae',
    500: '#12368c',
    950: '#000000',
  },
}
SCSS
$custom: #12368c;
$custom-light: #696cae;
$custom-dark: #000000;
JSON
{
  "hex": "#12368c",
  "rgb": {
    "r": 18,
    "g": 54,
    "b": 140
  },
  "hsl": {
    "h": 222.295,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36806,
    "c": 0.14884,
    "h": 263.5
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#12368C
secondary
#C09939
accent
#BB34F4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #12368C

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

Preview Lab → · Contrast checker → · Palette generator →

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