#12358D#12358D

#12358D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.151 H 263.9°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#12358D
RGBrgb(18, 53, 141)
HSLhsl(223, 77%, 31%)
HSVhsv(223, 87%, 55%)
CMYKcmyk(87.2%, 62.4%, 0%, 44.7%)
CIE-LABlab(25.55, 23.54, -52.03)
CIE-LCHlch(25.55, 57.11, 294.34°)
OKLaboklab(36.69% -0.0162 -0.1506)
OKLCHoklch(36.69% 0.151 263.9)
XYZxyz(6.3286, 4.5971, 25.7479)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12358D #8D6A12
analogous
#12728D #12358D #2C128D
triadic
#12358D #8D1235 #358D12
tetradic
#12358D #8D1272 #8D6A12 #128D2C
square
#12358D #8D1272 #8D6A12 #128D2C
split-complementary
#12358D #8D2C12 #728D12
monochromatic
#040C20 #0B2157 #12358D #1949C3 #3467E5

Accessibility & contrast

On white

10.94
#12358D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#12358D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12358D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12358D#FFFFFF#000000##FFFFFF
##12358D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #12358d;
/* rgb */ color: rgb(18, 53, 141);
/* oklch */ color: oklch(36.7% 0.151 263.9);
Tailwind
colors: {
  custom: {
    50: '#696baf',
    500: '#12358d',
    950: '#000000',
  },
}
SCSS
$custom: #12358d;
$custom-light: #696baf;
$custom-dark: #000000;
JSON
{
  "hex": "#12358d",
  "rgb": {
    "r": 18,
    "g": 53,
    "b": 141
  },
  "hsl": {
    "h": 222.927,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36693,
    "c": 0.15149,
    "h": 263.9
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

primary
#12358D
secondary
#C19B39
accent
#BD34F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #12358D

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

Preview Lab → · Contrast checker → · Palette generator →

#12358D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva