#12245B#12245B

#12245B is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.102 H 266.2°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#12245B
RGBrgb(18, 36, 91)
HSLhsl(225, 67%, 21%)
HSVhsv(225, 80%, 36%)
CMYKcmyk(80.2%, 60.4%, 0%, 64.3%)
CIE-LABlab(16.23, 14.90, -35.15)
CIE-LCHlch(16.23, 38.18, 292.97°)
OKLaboklab(28.34% -0.0067 -0.1014)
OKLCHoklch(28.34% 0.102 266.2)
XYZxyz(2.7680, 2.1454, 10.1637)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12245B #5B4912
analogous
#12495B #12245B #25125B
triadic
#12245B #5B1224 #245B12
tetradic
#12245B #5B1249 #5B4912 #125B25
square
#12245B #5B1249 #5B4912 #125B25
split-complementary
#12245B #5B2512 #495B12
monochromatic
#050A1A #081028 #12245B #1C388E #264CC1

Accessibility & contrast

On white

14.69
#12245B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#12245B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12245B
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12245B#FFFFFF#000000##FFFFFF
##12245B1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#00323B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12245b;
/* rgb */ color: rgb(18, 36, 91);
/* oklch */ color: oklch(28.3% 0.102 266.2);
Tailwind
colors: {
  custom: {
    50: '#5c5e8a',
    500: '#12245b',
    950: '#000000',
  },
}
SCSS
$custom: #12245b;
$custom-light: #5c5e8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12245b",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 91
  },
  "hsl": {
    "h": 225.205,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28336,
    "c": 0.10159,
    "h": 266.2
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#12245B
secondary
#937C35
accent
#BF3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12245B

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

Preview Lab → · Contrast checker → · Palette generator →

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