#12235E#12235E

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

Color values

HEX#12235E
RGBrgb(18, 35, 94)
HSLhsl(227, 68%, 22%)
HSVhsv(227, 81%, 37%)
CMYKcmyk(80.9%, 62.8%, 0%, 63.1%)
CIE-LABlab(16.20, 16.92, -37.21)
CIE-LCHlch(16.20, 40.87, 294.45°)
OKLaboklab(28.39% -0.0058 -0.1074)
OKLCHoklch(28.39% 0.108 266.9)
XYZxyz(2.8702, 2.1385, 10.8490)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12235E #5E4D12
analogous
#12495E #12235E #27125E
triadic
#12235E #5E1223 #235E12
tetradic
#12235E #5E1249 #5E4D12 #125E27
square
#12235E #5E1249 #5E4D12 #125E27
split-complementary
#12235E #5E2712 #495E12
monochromatic
#050A1A #08102B #12235E #1C3691 #2649C5

Accessibility & contrast

On white

14.71
#12235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#12235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12235E
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12235E#FFFFFF#000000##FFFFFF
##12235E1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12235e;
/* rgb */ color: rgb(18, 35, 94);
/* oklch */ color: oklch(28.4% 0.108 266.9);
Tailwind
colors: {
  custom: {
    50: '#5d5d8c',
    500: '#12235e',
    950: '#000000',
  },
}
SCSS
$custom: #12235e;
$custom-light: #5d5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#12235e",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 226.579,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28393,
    "c": 0.10757,
    "h": 266.9
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#12235E
secondary
#968135
accent
#C43DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12235E

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

Preview Lab → · Contrast checker → · Palette generator →

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