#12254D#12254D

#12254D is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.4% C 0.078 H 263.1°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#12254D
RGBrgb(18, 37, 77)
HSLhsl(221, 62%, 19%)
HSVhsv(221, 77%, 30%)
CMYKcmyk(76.6%, 51.9%, 0%, 69.8%)
CIE-LABlab(15.42, 8.14, -27.02)
CIE-LCHlch(15.42, 28.22, 286.76°)
OKLaboklab(27.36% -0.0093 -0.0774)
OKLCHoklch(27.36% 0.078 263.1)
XYZxyz(2.2501, 1.9873, 7.2847)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12254D #4D3A12
analogous
#12424D #12254D #1C124D
triadic
#12254D #4D1225 #254D12
tetradic
#12254D #4D1242 #4D3A12 #124D1C
square
#12254D #4D1242 #4D3A12 #124D1C
split-complementary
#12254D #4D1C12 #424D12
monochromatic
#060C19 #060D1B #12254D #1E3D7F #2955B0

Accessibility & contrast

On white

15.03
#12254D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#12254D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12254D
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12254D#FFFFFF#000000##FFFFFF
##12254D1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10294E
Deuteranopia (green-blind)
#04244C
Tritanopia (blue-blind)
#002E35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12254d;
/* rgb */ color: rgb(18, 37, 77);
/* oklch */ color: oklch(27.4% 0.078 263.1);
Tailwind
colors: {
  custom: {
    50: '#585f7f',
    500: '#12254d',
    950: '#000000',
  },
}
SCSS
$custom: #12254d;
$custom-light: #585f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#12254d",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 77
  },
  "hsl": {
    "h": 220.678,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27362,
    "c": 0.07798,
    "h": 263.1
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#12254D
secondary
#866C35
accent
#B143E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12254D

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

Preview Lab → · Contrast checker → · Palette generator →

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