#12335F#12335F

#12335F is a dark, moderate cyan. Relative luminance 0.033; OKLCH L 32.3% C 0.087 H 256.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#12335F
RGBrgb(18, 51, 95)
HSLhsl(214, 68%, 22%)
HSVhsv(214, 81%, 37%)
CMYKcmyk(81.1%, 46.3%, 0%, 62.7%)
CIE-LABlab(21.29, 5.58, -29.64)
CIE-LCHlch(21.29, 30.16, 280.67°)
OKLaboklab(32.3% -0.02 -0.0848)
OKLCHoklch(32.3% 0.087 256.8)
XYZxyz(3.4981, 3.3221, 11.2811)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12335F #5F3E12
analogous
#125A5F #12335F #18125F
triadic
#12335F #5F1233 #335F12
tetradic
#12335F #5F125A #5F3E12 #125F18
square
#12335F #5F125A #5F3E12 #125F18
split-complementary
#12335F #5F1812 #5A5F12
monochromatic
#050E1A #08172C #12335F #1C4F92 #256AC6

Accessibility & contrast

On white

12.62
#12335F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#12335F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12335F
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12335F#FFFFFF#000000##FFFFFF
##12335F1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3761
Deuteranopia (green-blind)
#0F305E
Tritanopia (blue-blind)
#003D44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #12335f;
/* rgb */ color: rgb(18, 51, 95);
/* oklch */ color: oklch(32.3% 0.087 256.8);
Tailwind
colors: {
  custom: {
    50: '#5d6a8d',
    500: '#12335f',
    950: '#000000',
  },
}
SCSS
$custom: #12335f;
$custom-light: #5d6a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#12335f",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 95
  },
  "hsl": {
    "h": 214.286,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32299,
    "c": 0.08717,
    "h": 256.8
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#12335F
secondary
#976D36
accent
#A03DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12335F

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

Preview Lab → · Contrast checker → · Palette generator →

#12335F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva