#12254B#12254B

#12254B is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.2% C 0.075 H 262.5°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#12254B
RGBrgb(18, 37, 75)
HSLhsl(220, 61%, 18%)
HSVhsv(220, 76%, 29%)
CMYKcmyk(76%, 50.7%, 0%, 70.6%)
CIE-LABlab(15.27, 7.28, -25.89)
CIE-LCHlch(15.27, 26.89, 285.70°)
OKLaboklab(27.2% -0.0097 -0.0741)
OKLCHoklch(27.2% 0.075 262.5)
XYZxyz(2.1806, 1.9595, 6.9186)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12254B #4B3812
analogous
#12414B #12254B #1B124B
triadic
#12254B #4B1225 #254B12
tetradic
#12254B #4B1241 #4B3812 #124B1B
square
#12254B #4B1241 #4B3812 #124B1B
split-complementary
#12254B #4B1B12 #414B12
monochromatic
#060C19 #060D1A #12254B #1E3D7C #2A56AE

Accessibility & contrast

On white

15.09
#12254B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12254B
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12254B#FFFFFF#000000##FFFFFF
##12254B1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12294C
Deuteranopia (green-blind)
#07244A
Tritanopia (blue-blind)
#002E34
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #12254b;
/* rgb */ color: rgb(18, 37, 75);
/* oklch */ color: oklch(27.2% 0.075 262.5);
Tailwind
colors: {
  custom: {
    50: '#585f7d',
    500: '#12254b',
    950: '#000000',
  },
}
SCSS
$custom: #12254b;
$custom-light: #585f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#12254b",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 75
  },
  "hsl": {
    "h": 220,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27201,
    "c": 0.07473,
    "h": 262.5
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#12254B
secondary
#846A35
accent
#AF43E4
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12254B

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

Preview Lab → · Contrast checker → · Palette generator →

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