#12247E#12247E

#12247E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.152 H 267.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#12247E
RGBrgb(18, 36, 126)
HSLhsl(230, 75%, 28%)
HSVhsv(230, 86%, 49%)
CMYKcmyk(85.7%, 71.4%, 0%, 50.6%)
CIE-LABlab(19.62, 29.26, -52.36)
CIE-LCHlch(19.62, 59.98, 299.19°)
OKLaboklab(31.88% -0.0074 -0.1517)
OKLCHoklch(31.88% 0.152 267.2)
XYZxyz(4.6449, 2.8961, 20.0488)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12247E #7E6C12
analogous
#125A7E #12247E #36127E
triadic
#12247E #7E1224 #247E12
tetradic
#12247E #7E125A #7E6C12 #127E36
square
#12247E #7E125A #7E6C12 #127E36
split-complementary
#12247E #7E3612 #5A7E12
monochromatic
#04081B #0A1548 #12247E #1A33B4 #2A48E1

Accessibility & contrast

On white

13.30
#12247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#12247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12247E
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12247E#FFFFFF#000000##FFFFFF
##12247E1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #12247e;
/* rgb */ color: rgb(18, 36, 126);
/* oklch */ color: oklch(31.9% 0.152 267.2);
Tailwind
colors: {
  custom: {
    50: '#675fa4',
    500: '#12247e',
    950: '#000000',
  },
}
SCSS
$custom: #12247e;
$custom-light: #675fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#12247e",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 230,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31879,
    "c": 0.15193,
    "h": 267.2
  },
  "luminance": 0.02897
}

Semantic roles & 50–950 ramp

primary
#12247E
secondary
#B49F38
accent
#D236F2
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #12247E

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

Preview Lab → · Contrast checker → · Palette generator →

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