#12254A#12254A

#12254A is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.073 H 262.2°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#12254A
RGBrgb(18, 37, 74)
HSLhsl(220, 61%, 18%)
HSVhsv(220, 76%, 29%)
CMYKcmyk(75.7%, 50%, 0%, 71%)
CIE-LABlab(15.20, 6.85, -25.32)
CIE-LCHlch(15.20, 26.23, 285.13°)
OKLaboklab(27.12% -0.0099 -0.0724)
OKLCHoklch(27.12% 0.073 262.2)
XYZxyz(2.1466, 1.9459, 6.7397)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12254A #4A3712
analogous
#12414A #12254A #1B124A
triadic
#12254A #4A1225 #254A12
tetradic
#12254A #4A1241 #4A3712 #124A1B
square
#12254A #4A1241 #4A3712 #124A1B
split-complementary
#12254A #4A1B12 #414A12
monochromatic
#060C19 #060C19 #12254A #1E3E7B #2A56AC

Accessibility & contrast

On white

15.12
#12254A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#12254A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12254A
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12254A#FFFFFF#000000##FFFFFF
##12254A1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13294B
Deuteranopia (green-blind)
#082449
Tritanopia (blue-blind)
#002E33
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12254a;
/* rgb */ color: rgb(18, 37, 74);
/* oklch */ color: oklch(27.1% 0.073 262.2);
Tailwind
colors: {
  custom: {
    50: '#585f7d',
    500: '#12254a',
    950: '#000000',
  },
}
SCSS
$custom: #12254a;
$custom-light: #585f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#12254a",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 74
  },
  "hsl": {
    "h": 219.643,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27122,
    "c": 0.0731,
    "h": 262.2
  },
  "luminance": 0.01946
}

Semantic roles & 50–950 ramp

primary
#12254A
secondary
#836835
accent
#AE44E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #12254A

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

Preview Lab → · Contrast checker → · Palette generator →

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