#12265E#12265E

#12265E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.103 H 265.4°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#12265E
RGBrgb(18, 38, 94)
HSLhsl(224, 68%, 22%)
HSVhsv(224, 81%, 37%)
CMYKcmyk(80.9%, 59.6%, 0%, 63.1%)
CIE-LABlab(17.10, 14.69, -35.74)
CIE-LCHlch(17.10, 38.65, 292.34°)
OKLaboklab(29.07% -0.0082 -0.1031)
OKLCHoklch(29.07% 0.103 265.4)
XYZxyz(2.9622, 2.3226, 10.8797)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12265E #5E4A12
analogous
#124C5E #12265E #24125E
triadic
#12265E #5E1226 #265E12
tetradic
#12265E #5E124C #5E4A12 #125E24
square
#12265E #5E124C #5E4A12 #125E24
split-complementary
#12265E #5E2412 #4C5E12
monochromatic
#050A1A #08112B #12265E #1C3B91 #2650C5

Accessibility & contrast

On white

14.34
#12265E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12265E
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12265E#FFFFFF#000000##FFFFFF
##12265E1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12265e;
/* rgb */ color: rgb(18, 38, 94);
/* oklch */ color: oklch(29.1% 0.103 265.4);
Tailwind
colors: {
  custom: {
    50: '#5d5f8c',
    500: '#12265e',
    950: '#000000',
  },
}
SCSS
$custom: #12265e;
$custom-light: #5d5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#12265e",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 94
  },
  "hsl": {
    "h": 224.211,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29068,
    "c": 0.1034,
    "h": 265.4
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#12265E
secondary
#967D35
accent
#BD3DEB
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12265E

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

Preview Lab → · Contrast checker → · Palette generator →

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