#12235D#12235D

#12235D is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.106 H 266.9°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#12235D
RGBrgb(18, 35, 93)
HSLhsl(226, 68%, 22%)
HSVhsv(226, 81%, 36%)
CMYKcmyk(80.6%, 62.4%, 0%, 63.5%)
CIE-LABlab(16.11, 16.49, -36.69)
CIE-LCHlch(16.11, 40.22, 294.21°)
OKLaboklab(28.3% -0.0058 -0.1059)
OKLCHoklch(28.3% 0.106 266.9)
XYZxyz(2.8256, 2.1207, 10.6142)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12235D #5D4C12
analogous
#12495D #12235D #27125D
triadic
#12235D #5D1223 #235D12
tetradic
#12235D #5D1249 #5D4C12 #125D27
square
#12235D #5D1249 #5D4C12 #125D27
split-complementary
#12235D #5D2712 #495D12
monochromatic
#050A1A #08102A #12235D #1C3690 #264AC4

Accessibility & contrast

On white

14.75
#12235D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#12235D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12235D
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12235D#FFFFFF#000000##FFFFFF
##12235D1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12235d;
/* rgb */ color: rgb(18, 35, 93);
/* oklch */ color: oklch(28.3% 0.106 266.9);
Tailwind
colors: {
  custom: {
    50: '#5d5d8b',
    500: '#12235d',
    950: '#000000',
  },
}
SCSS
$custom: #12235d;
$custom-light: #5d5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12235d",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 93
  },
  "hsl": {
    "h": 226.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.10606,
    "h": 266.9
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#12235D
secondary
#958035
accent
#C33DEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12235D

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

Preview Lab → · Contrast checker → · Palette generator →

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