#12438F#12438F

#12438F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.136 H 259.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#12438F
RGBrgb(18, 67, 143)
HSLhsl(216, 78%, 32%)
HSVhsv(216, 87%, 56%)
CMYKcmyk(87.4%, 53.1%, 0%, 43.9%)
CIE-LABlab(29.73, 14.59, -46.48)
CIE-LCHlch(29.73, 48.71, 287.43°)
OKLaboklab(39.9% -0.0248 -0.134)
OKLCHoklch(39.9% 0.136 259.5)
XYZxyz(7.2127, 6.1252, 26.7834)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12438F #8F5E12
analogous
#12828F #12438F #20128F
triadic
#12438F #8F1243 #438F12
tetradic
#12438F #8F1282 #8F5E12 #128F20
square
#12438F #8F1282 #8F5E12 #128F20
split-complementary
#12438F #8F2012 #828F12
monochromatic
#041022 #0B2A59 #12438F #195CC5 #367BE6

Accessibility & contrast

On white

9.44
#12438F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#12438F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12438F
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12438F#FFFFFF#000000##FFFFFF
##12438F1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4C92
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#005662
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12438f;
/* rgb */ color: rgb(18, 67, 143);
/* oklch */ color: oklch(39.9% 0.136 259.5);
Tailwind
colors: {
  custom: {
    50: '#6976b0',
    500: '#12438f',
    950: '#000000',
  },
}
SCSS
$custom: #12438f;
$custom-light: #6976b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12438f",
  "rgb": {
    "r": 18,
    "g": 67,
    "b": 143
  },
  "hsl": {
    "h": 216.48,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39895,
    "c": 0.13631,
    "h": 259.5
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#12438F
secondary
#C38D3A
accent
#A934F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070811
muted
#7A7B80

Preview Lab

Preview with #12438F

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

Preview Lab → · Contrast checker → · Palette generator →

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