#12254C#12254C

#12254C is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.3% C 0.076 H 262.8°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#12254C
RGBrgb(18, 37, 76)
HSLhsl(220, 62%, 18%)
HSVhsv(220, 76%, 30%)
CMYKcmyk(76.3%, 51.3%, 0%, 70.2%)
CIE-LABlab(15.35, 7.71, -26.46)
CIE-LCHlch(15.35, 27.55, 286.24°)
OKLaboklab(27.28% -0.0095 -0.0758)
OKLCHoklch(27.28% 0.076 262.8)
XYZxyz(2.2151, 1.9733, 7.1002)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12254C #4C3912
analogous
#12424C #12254C #1C124C
triadic
#12254C #4C1225 #254C12
tetradic
#12254C #4C1242 #4C3912 #124C1C
square
#12254C #4C1242 #4C3912 #124C1C
split-complementary
#12254C #4C1C12 #424C12
monochromatic
#060C19 #060D1B #12254C #1E3D7D #2955AF

Accessibility & contrast

On white

15.06
#12254C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12254C
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12254C#FFFFFF#000000##FFFFFF
##12254C1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294D
Deuteranopia (green-blind)
#05244B
Tritanopia (blue-blind)
#002E34
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12254c;
/* rgb */ color: rgb(18, 37, 76);
/* oklch */ color: oklch(27.3% 0.076 262.8);
Tailwind
colors: {
  custom: {
    50: '#585f7e',
    500: '#12254c',
    950: '#000000',
  },
}
SCSS
$custom: #12254c;
$custom-light: #585f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#12254c",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 76
  },
  "hsl": {
    "h": 220.345,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27281,
    "c": 0.07636,
    "h": 262.8
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#12254C
secondary
#856B35
accent
#B043E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12254C

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

Preview Lab → · Contrast checker → · Palette generator →

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