#12265B#12265B

#12265B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.099 H 265.1°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#12265B
RGBrgb(18, 38, 91)
HSLhsl(224, 67%, 21%)
HSVhsv(224, 80%, 36%)
CMYKcmyk(80.2%, 58.2%, 0%, 64.3%)
CIE-LABlab(16.84, 13.41, -34.16)
CIE-LCHlch(16.84, 36.70, 291.43°)
OKLaboklab(28.8% -0.0084 -0.0984)
OKLCHoklch(28.8% 0.099 265.1)
XYZxyz(2.8302, 2.2698, 10.1845)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12265B #5B4712
analogous
#124B5B #12265B #23125B
triadic
#12265B #5B1226 #265B12
tetradic
#12265B #5B124B #5B4712 #125B23
square
#12265B #5B124B #5B4712 #125B23
split-complementary
#12265B #5B2312 #4B5B12
monochromatic
#050B1A #081128 #12265B #1C3B8E #2651C1

Accessibility & contrast

On white

14.44
#12265B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#12265B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12265B
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12265B#FFFFFF#000000##FFFFFF
##12265B1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#00333C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12265b;
/* rgb */ color: rgb(18, 38, 91);
/* oklch */ color: oklch(28.8% 0.099 265.1);
Tailwind
colors: {
  custom: {
    50: '#5c5f8a',
    500: '#12265b',
    950: '#000000',
  },
}
SCSS
$custom: #12265b;
$custom-light: #5c5f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12265b",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 91
  },
  "hsl": {
    "h": 223.562,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28797,
    "c": 0.09877,
    "h": 265.1
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#12265B
secondary
#937A35
accent
#BB3EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12265B

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

Preview Lab → · Contrast checker → · Palette generator →

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