#12438E#12438E

#12438E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.8% C 0.135 H 259.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#12438E
RGBrgb(18, 67, 142)
HSLhsl(216, 78%, 31%)
HSVhsv(216, 87%, 56%)
CMYKcmyk(87.3%, 52.8%, 0%, 44.3%)
CIE-LABlab(29.65, 14.17, -45.98)
CIE-LCHlch(29.65, 48.12, 287.13°)
OKLaboklab(39.81% -0.025 -0.1326)
OKLCHoklch(39.81% 0.135 259.3)
XYZxyz(7.1373, 6.0950, 26.3862)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12438E #8E5D12
analogous
#12818E #12438E #1F128E
triadic
#12438E #8E1243 #438E12
tetradic
#12438E #8E1281 #8E5D12 #128E1F
square
#12438E #8E1281 #8E5D12 #128E1F
split-complementary
#12438E #8E1F12 #818E12
monochromatic
#041021 #0B2958 #12438E #195DC4 #357BE5

Accessibility & contrast

On white

9.46
#12438E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#12438E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12438E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12438E#FFFFFF#000000##FFFFFF
##12438E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C91
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #12438e;
/* rgb */ color: rgb(18, 67, 142);
/* oklch */ color: oklch(39.8% 0.135 259.3);
Tailwind
colors: {
  custom: {
    50: '#6976b0',
    500: '#12438e',
    950: '#000000',
  },
}
SCSS
$custom: #12438e;
$custom-light: #6976b0;
$custom-dark: #000000;
JSON
{
  "hex": "#12438e",
  "rgb": {
    "r": 18,
    "g": 67,
    "b": 142
  },
  "hsl": {
    "h": 216.29,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39814,
    "c": 0.13491,
    "h": 259.3
  },
  "luminance": 0.06096
}

Semantic roles & 50–950 ramp

primary
#12438E
secondary
#C28C3A
accent
#A834F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #12438E

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

Preview Lab → · Contrast checker → · Palette generator →

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