#12235C#12235C

#12235C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.105 H 266.8°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#12235C
RGBrgb(18, 35, 92)
HSLhsl(226, 67%, 22%)
HSVhsv(226, 80%, 36%)
CMYKcmyk(80.4%, 62%, 0%, 63.9%)
CIE-LABlab(16.02, 16.07, -36.17)
CIE-LCHlch(16.02, 39.58, 293.96°)
OKLaboklab(28.2% -0.0058 -0.1044)
OKLCHoklch(28.2% 0.105 266.8)
XYZxyz(2.7816, 2.1031, 10.3825)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12235C #5C4B12
analogous
#12485C #12235C #26125C
triadic
#12235C #5C1223 #235C12
tetradic
#12235C #5C1248 #5C4B12 #125C26
square
#12235C #5C1248 #5C4B12 #125C26
split-complementary
#12235C #5C2612 #485C12
monochromatic
#050A1A #081029 #12235C #1C368F #264AC2

Accessibility & contrast

On white

14.78
#12235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12235C
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12235C#FFFFFF#000000##FFFFFF
##12235C1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#00313B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #12235c;
/* rgb */ color: rgb(18, 35, 92);
/* oklch */ color: oklch(28.2% 0.105 266.8);
Tailwind
colors: {
  custom: {
    50: '#5d5d8b',
    500: '#12235c',
    950: '#000000',
  },
}
SCSS
$custom: #12235c;
$custom-light: #5d5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12235c",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 226.216,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28203,
    "c": 0.10453,
    "h": 266.8
  },
  "luminance": 0.02103
}

Semantic roles & 50–950 ramp

primary
#12235C
secondary
#947F35
accent
#C33EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12235C

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

Preview Lab → · Contrast checker → · Palette generator →

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