#12335C#12335C

#12335C is a dark, moderate cyan. Relative luminance 0.033; OKLCH L 32.1% C 0.083 H 255.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#12335C
RGBrgb(18, 51, 92)
HSLhsl(213, 67%, 22%)
HSVhsv(213, 80%, 36%)
CMYKcmyk(80.4%, 44.6%, 0%, 63.9%)
CIE-LABlab(21.09, 4.30, -27.99)
CIE-LCHlch(21.09, 28.32, 278.74°)
OKLaboklab(32.08% -0.0207 -0.08)
OKLCHoklch(32.08% 0.083 255.5)
XYZxyz(3.3643, 3.2686, 10.5767)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12335C #5C3B12
analogous
#12585C #12335C #16125C
triadic
#12335C #5C1233 #335C12
tetradic
#12335C #5C1258 #5C3B12 #125C16
square
#12335C #5C1258 #5C3B12 #125C16
split-complementary
#12335C #5C1612 #585C12
monochromatic
#050E1A #081729 #12335C #1C4F8F #266CC2

Accessibility & contrast

On white

12.70
#12335C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#12335C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12335C
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12335C#FFFFFF#000000##FFFFFF
##12335C1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F365E
Deuteranopia (green-blind)
#13305B
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #12335c;
/* rgb */ color: rgb(18, 51, 92);
/* oklch */ color: oklch(32.1% 0.083 255.5);
Tailwind
colors: {
  custom: {
    50: '#5c6a8a',
    500: '#12335c',
    950: '#000000',
  },
}
SCSS
$custom: #12335c;
$custom-light: #5c6a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#12335c",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 92
  },
  "hsl": {
    "h": 213.243,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32078,
    "c": 0.08263,
    "h": 255.5
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#12335C
secondary
#946A35
accent
#9D3EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060C
muted
#797A7D

Preview Lab

Preview with #12335C

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

Preview Lab → · Contrast checker → · Palette generator →

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