#12335A#12335A

#12335A is a dark, moderate cyan. Relative luminance 0.032; OKLCH L 31.9% C 0.080 H 254.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#12335A
RGBrgb(18, 51, 90)
HSLhsl(213, 67%, 21%)
HSVhsv(213, 80%, 35%)
CMYKcmyk(80%, 43.3%, 0%, 64.7%)
CIE-LABlab(20.96, 3.45, -26.88)
CIE-LCHlch(20.96, 27.10, 277.32°)
OKLaboklab(31.93% -0.0212 -0.0767)
OKLCHoklch(31.93% 0.08 254.6)
XYZxyz(3.2781, 3.2341, 10.1224)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12335A #5A3912
analogous
#12575A #12335A #15125A
triadic
#12335A #5A1233 #335A12
tetradic
#12335A #5A1257 #5A3912 #125A15
square
#12335A #5A1257 #5A3912 #125A15
split-complementary
#12335A #5A1512 #575A12
monochromatic
#050E1A #081627 #12335A #1C508D #266DC0

Accessibility & contrast

On white

12.75
#12335A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12335A
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12335A#FFFFFF#000000##FFFFFF
##12335A1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20365C
Deuteranopia (green-blind)
#152F59
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #12335a;
/* rgb */ color: rgb(18, 51, 90);
/* oklch */ color: oklch(31.9% 0.080 254.6);
Tailwind
colors: {
  custom: {
    50: '#5b6a89',
    500: '#12335a',
    950: '#000000',
  },
}
SCSS
$custom: #12335a;
$custom-light: #5b6a89;
$custom-dark: #000000;
JSON
{
  "hex": "#12335a",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 90
  },
  "hsl": {
    "h": 212.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31933,
    "c": 0.07961,
    "h": 254.6
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#12335A
secondary
#936835
accent
#9B3EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #12335A

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

Preview Lab → · Contrast checker → · Palette generator →

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