#12235B#12235B

#12235B is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.103 H 266.7°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#12235B
RGBrgb(18, 35, 91)
HSLhsl(226, 67%, 21%)
HSVhsv(226, 80%, 36%)
CMYKcmyk(80.2%, 61.5%, 0%, 64.3%)
CIE-LABlab(15.93, 15.65, -35.64)
CIE-LCHlch(15.93, 38.93, 293.70°)
OKLaboklab(28.11% -0.0059 -0.1028)
OKLCHoklch(28.11% 0.103 266.7)
XYZxyz(2.7382, 2.0857, 10.1538)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12235B #5B4A12
analogous
#12485B #12235B #26125B
triadic
#12235B #5B1223 #235B12
tetradic
#12235B #5B1248 #5B4A12 #125B26
square
#12235B #5B1248 #5B4A12 #125B26
split-complementary
#12235B #5B2612 #485B12
monochromatic
#050A1A #080F28 #12235B #1C378E #264AC1

Accessibility & contrast

On white

14.82
#12235B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12235B
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12235B#FFFFFF#000000##FFFFFF
##12235B1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12235b;
/* rgb */ color: rgb(18, 35, 91);
/* oklch */ color: oklch(28.1% 0.103 266.7);
Tailwind
colors: {
  custom: {
    50: '#5c5d8a',
    500: '#12235b',
    950: '#000000',
  },
}
SCSS
$custom: #12235b;
$custom-light: #5c5d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12235b",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 91
  },
  "hsl": {
    "h": 226.027,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28109,
    "c": 0.103,
    "h": 266.7
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#12235B
secondary
#937E35
accent
#C23EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12235B

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

Preview Lab → · Contrast checker → · Palette generator →

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