#12254E#12254E

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

Color values

HEX#12254E
RGBrgb(18, 37, 78)
HSLhsl(221, 63%, 19%)
HSVhsv(221, 77%, 31%)
CMYKcmyk(76.9%, 52.6%, 0%, 69.4%)
CIE-LABlab(15.50, 8.56, -27.58)
CIE-LCHlch(15.50, 28.88, 287.25°)
OKLaboklab(27.44% -0.0092 -0.0791)
OKLCHoklch(27.44% 0.08 263.4)
XYZxyz(2.2857, 2.0016, 7.4721)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12254E #4E3B12
analogous
#12434E #12254E #1D124E
triadic
#12254E #4E1225 #254E12
tetradic
#12254E #4E1243 #4E3B12 #124E1D
square
#12254E #4E1243 #4E3B12 #124E1D
split-complementary
#12254E #4E1D12 #434E12
monochromatic
#060C19 #070D1C #12254E #1D3D80 #2954B1

Accessibility & contrast

On white

15.00
#12254E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12254E
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12254E#FFFFFF#000000##FFFFFF
##12254E1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A50
Deuteranopia (green-blind)
#03244D
Tritanopia (blue-blind)
#002F35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12254e;
/* rgb */ color: rgb(18, 37, 78);
/* oklch */ color: oklch(27.4% 0.080 263.4);
Tailwind
colors: {
  custom: {
    50: '#595f80',
    500: '#12254e',
    950: '#000000',
  },
}
SCSS
$custom: #12254e;
$custom-light: #595f80;
$custom-dark: #000000;
JSON
{
  "hex": "#12254e",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 78
  },
  "hsl": {
    "h": 221,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.27443,
    "c": 0.0796,
    "h": 263.4
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#12254E
secondary
#876D35
accent
#B242E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12254E

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

Preview Lab → · Contrast checker → · Palette generator →

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