#12335E#12335E

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

Color values

HEX#12335E
RGBrgb(18, 51, 94)
HSLhsl(214, 68%, 22%)
HSVhsv(214, 81%, 37%)
CMYKcmyk(80.9%, 45.7%, 0%, 63.1%)
CIE-LABlab(21.22, 5.16, -29.09)
CIE-LCHlch(21.22, 29.55, 280.05°)
OKLaboklab(32.23% -0.0202 -0.0832)
OKLCHoklch(32.23% 0.086 256.4)
XYZxyz(3.4529, 3.3040, 11.0433)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12335E #5E3D12
analogous
#12595E #12335E #17125E
triadic
#12335E #5E1233 #335E12
tetradic
#12335E #5E1259 #5E3D12 #125E17
square
#12335E #5E1259 #5E3D12 #125E17
split-complementary
#12335E #5E1712 #595E12
monochromatic
#050E1A #08172B #12335E #1C4F91 #266BC5

Accessibility & contrast

On white

12.64
#12335E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12335E
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12335E#FFFFFF#000000##FFFFFF
##12335E1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3760
Deuteranopia (green-blind)
#10305D
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #12335e;
/* rgb */ color: rgb(18, 51, 94);
/* oklch */ color: oklch(32.2% 0.086 256.4);
Tailwind
colors: {
  custom: {
    50: '#5c6a8c',
    500: '#12335e',
    950: '#000000',
  },
}
SCSS
$custom: #12335e;
$custom-light: #5c6a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#12335e",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 94
  },
  "hsl": {
    "h": 213.947,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32225,
    "c": 0.08566,
    "h": 256.4
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#12335E
secondary
#966C35
accent
#9F3DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12335E

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

Preview Lab → · Contrast checker → · Palette generator →

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