#12265F#12265F

#12265F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.105 H 265.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#12265F
RGBrgb(18, 38, 95)
HSLhsl(224, 68%, 22%)
HSVhsv(224, 81%, 37%)
CMYKcmyk(81.1%, 60%, 0%, 62.7%)
CIE-LABlab(17.18, 15.12, -36.27)
CIE-LCHlch(17.18, 39.29, 292.63°)
OKLaboklab(29.16% -0.0081 -0.1046)
OKLCHoklch(29.16% 0.105 265.6)
XYZxyz(3.0074, 2.3407, 11.1176)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12265F #5F4B12
analogous
#124D5F #12265F #25125F
triadic
#12265F #5F1226 #265F12
tetradic
#12265F #5F124D #5F4B12 #125F25
square
#12265F #5F124D #5F4B12 #125F25
split-complementary
#12265F #5F2512 #4D5F12
monochromatic
#050A1A #08112C #12265F #1C3B92 #254FC6

Accessibility & contrast

On white

14.30
#12265F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#12265F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12265F
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12265F#FFFFFF#000000##FFFFFF
##12265F1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12265f;
/* rgb */ color: rgb(18, 38, 95);
/* oklch */ color: oklch(29.2% 0.105 265.6);
Tailwind
colors: {
  custom: {
    50: '#5d5f8d',
    500: '#12265f',
    950: '#000000',
  },
}
SCSS
$custom: #12265f;
$custom-light: #5d5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#12265f",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 95
  },
  "hsl": {
    "h": 224.416,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29159,
    "c": 0.10493,
    "h": 265.6
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#12265F
secondary
#977E36
accent
#BE3DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12265F

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

Preview Lab → · Contrast checker → · Palette generator →

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