#12265D#12265D

#12265D is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.102 H 265.3°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#12265D
RGBrgb(18, 38, 93)
HSLhsl(224, 68%, 22%)
HSVhsv(224, 81%, 36%)
CMYKcmyk(80.6%, 59.1%, 0%, 63.5%)
CIE-LABlab(17.01, 14.26, -35.22)
CIE-LCHlch(17.01, 38.00, 292.05°)
OKLaboklab(28.98% -0.0083 -0.1015)
OKLCHoklch(28.98% 0.102 265.3)
XYZxyz(2.9177, 2.3048, 10.6449)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12265D #5D4912
analogous
#124C5D #12265D #24125D
triadic
#12265D #5D1226 #265D12
tetradic
#12265D #5D124C #5D4912 #125D24
square
#12265D #5D124C #5D4912 #125D24
split-complementary
#12265D #5D2412 #4C5D12
monochromatic
#050A1A #08112A #12265D #1C3B90 #2650C4

Accessibility & contrast

On white

14.37
#12265D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#12265D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12265D
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12265D#FFFFFF#000000##FFFFFF
##12265D1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#00275C
Tritanopia (blue-blind)
#00343D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12265d;
/* rgb */ color: rgb(18, 38, 93);
/* oklch */ color: oklch(29.0% 0.102 265.3);
Tailwind
colors: {
  custom: {
    50: '#5d5f8b',
    500: '#12265d',
    950: '#000000',
  },
}
SCSS
$custom: #12265d;
$custom-light: #5d5f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12265d",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 93
  },
  "hsl": {
    "h": 224,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28977,
    "c": 0.10187,
    "h": 265.3
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#12265D
secondary
#957C35
accent
#BC3DEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12265D

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

Preview Lab → · Contrast checker → · Palette generator →

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