#12246A#12246A

#12246A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.8% C 0.124 H 267.0°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#12246A
RGBrgb(18, 36, 106)
HSLhsl(228, 71%, 24%)
HSVhsv(228, 83%, 42%)
CMYKcmyk(83%, 66%, 0%, 58.4%)
CIE-LABlab(17.60, 21.21, -42.82)
CIE-LCHlch(17.60, 47.78, 296.35°)
OKLaboklab(29.78% -0.0064 -0.1239)
OKLCHoklch(29.78% 0.124 267)
XYZxyz(3.4809, 2.4306, 13.9186)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12246A #6A5812
analogous
#12506A #12246A #2C126A
triadic
#12246A #6A1224 #246A12
tetradic
#12246A #6A1250 #6A5812 #126A2C
square
#12246A #6A1250 #6A5812 #126A2C
split-complementary
#12246A #6A2C12 #506A12
monochromatic
#04091A #091236 #12246A #1B369E #2448D3

Accessibility & contrast

On white

14.13
#12246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#12246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12246A
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12246A#FFFFFF#000000##FFFFFF
##12246A1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12246a;
/* rgb */ color: rgb(18, 36, 106);
/* oklch */ color: oklch(29.8% 0.124 267.0);
Tailwind
colors: {
  custom: {
    50: '#615e95',
    500: '#12246a',
    950: '#000000',
  },
}
SCSS
$custom: #12246a;
$custom-light: #615e95;
$custom-dark: #000000;
JSON
{
  "hex": "#12246a",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 227.727,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29783,
    "c": 0.12403,
    "h": 267
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#12246A
secondary
#A28C36
accent
#C93AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #12246A

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

Preview Lab → · Contrast checker → · Palette generator →

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