#12254F#12254F

#12254F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.081 H 263.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#12254F
RGBrgb(18, 37, 79)
HSLhsl(221, 63%, 19%)
HSVhsv(221, 77%, 31%)
CMYKcmyk(77.2%, 53.2%, 0%, 69%)
CIE-LABlab(15.57, 9.00, -28.14)
CIE-LCHlch(15.57, 29.54, 287.73°)
OKLaboklab(27.53% -0.009 -0.0807)
OKLCHoklch(27.53% 0.081 263.6)
XYZxyz(2.3218, 2.0160, 7.6624)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12254F #4F3C12
analogous
#12444F #12254F #1E124F
triadic
#12254F #4F1225 #254F12
tetradic
#12254F #4F1244 #4F3C12 #124F1E
square
#12254F #4F1244 #4F3C12 #124F1E
split-complementary
#12254F #4F1E12 #444F12
monochromatic
#060C19 #070E1D #12254F #1D3C81 #2954B3

Accessibility & contrast

On white

14.97
#12254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12254F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12254F#FFFFFF#000000##FFFFFF
##12254F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2A51
Deuteranopia (green-blind)
#01244E
Tritanopia (blue-blind)
#002F36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12254f;
/* rgb */ color: rgb(18, 37, 79);
/* oklch */ color: oklch(27.5% 0.081 263.6);
Tailwind
colors: {
  custom: {
    50: '#595f81',
    500: '#12254f',
    950: '#000000',
  },
}
SCSS
$custom: #12254f;
$custom-light: #595f81;
$custom-dark: #000000;
JSON
{
  "hex": "#12254f",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 221.311,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27525,
    "c": 0.08122,
    "h": 263.6
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#12254F
secondary
#886E35
accent
#B342E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12254F

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

Preview Lab → · Contrast checker → · Palette generator →

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