#12246F#12246F

#12246F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.131 H 267.1°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#12246F
RGBrgb(18, 36, 111)
HSLhsl(228, 72%, 25%)
HSVhsv(228, 84%, 44%)
CMYKcmyk(83.8%, 67.6%, 0%, 56.5%)
CIE-LABlab(18.09, 23.26, -45.27)
CIE-LCHlch(18.09, 50.90, 297.20°)
OKLaboklab(30.29% -0.0065 -0.131)
OKLCHoklch(30.29% 0.131 267.1)
XYZxyz(3.7486, 2.5376, 15.3281)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12246F #6F5D12
analogous
#12526F #12246F #2E126F
triadic
#12246F #6F1224 #246F12
tetradic
#12246F #6F1252 #6F5D12 #126F2E
square
#12246F #6F1252 #6F5D12 #126F2E
split-complementary
#12246F #6F2E12 #526F12
monochromatic
#04091A #09133A #12246F #1B35A4 #2346D8

Accessibility & contrast

On white

13.93
#12246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#12246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12246F
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12246F#FFFFFF#000000##FFFFFF
##12246F1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12246f;
/* rgb */ color: rgb(18, 36, 111);
/* oklch */ color: oklch(30.3% 0.131 267.1);
Tailwind
colors: {
  custom: {
    50: '#625e99',
    500: '#12246f',
    950: '#000000',
  },
}
SCSS
$custom: #12246f;
$custom-light: #625e99;
$custom-dark: #000000;
JSON
{
  "hex": "#12246f",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 228.387,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30291,
    "c": 0.1312,
    "h": 267.1
  },
  "luminance": 0.02538
}

Semantic roles & 50–950 ramp

primary
#12246F
secondary
#A69137
accent
#CC39EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #12246F

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

Preview Lab → · Contrast checker → · Palette generator →

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