#12335D#12335D

#12335D is a dark, moderate cyan. Relative luminance 0.033; OKLCH L 32.2% C 0.084 H 255.9°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#12335D
RGBrgb(18, 51, 93)
HSLhsl(214, 68%, 22%)
HSVhsv(214, 81%, 36%)
CMYKcmyk(80.6%, 45.2%, 0%, 63.5%)
CIE-LABlab(21.16, 4.73, -28.54)
CIE-LCHlch(21.16, 28.93, 279.40°)
OKLaboklab(32.15% -0.0204 -0.0816)
OKLCHoklch(32.15% 0.084 255.9)
XYZxyz(3.4083, 3.2862, 10.8085)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12335D #5D3C12
analogous
#12595D #12335D #17125D
triadic
#12335D #5D1233 #335D12
tetradic
#12335D #5D1259 #5D3C12 #125D17
square
#12335D #5D1259 #5D3C12 #125D17
split-complementary
#12335D #5D1712 #595D12
monochromatic
#050E1A #08172A #12335D #1C4F90 #266BC4

Accessibility & contrast

On white

12.67
#12335D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12335D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12335D#FFFFFF#000000##FFFFFF
##12335D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F375F
Deuteranopia (green-blind)
#11305C
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #12335d;
/* rgb */ color: rgb(18, 51, 93);
/* oklch */ color: oklch(32.2% 0.084 255.9);
Tailwind
colors: {
  custom: {
    50: '#5c6a8b',
    500: '#12335d',
    950: '#000000',
  },
}
SCSS
$custom: #12335d;
$custom-light: #5c6a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12335d",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 93
  },
  "hsl": {
    "h": 213.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32151,
    "c": 0.08415,
    "h": 255.9
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#12335D
secondary
#956B35
accent
#9E3DEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12335D

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

Preview Lab → · Contrast checker → · Palette generator →

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