#123158#123158

#123158 is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.3% C 0.079 H 255.6°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#123158
RGBrgb(18, 49, 88)
HSLhsl(213, 66%, 21%)
HSVhsv(213, 80%, 35%)
CMYKcmyk(79.5%, 44.3%, 0%, 65.5%)
CIE-LABlab(20.16, 4.03, -26.83)
CIE-LCHlch(20.16, 27.13, 278.54°)
OKLaboklab(31.27% -0.0196 -0.0766)
OKLCHoklch(31.27% 0.079 255.6)
XYZxyz(3.1086, 3.0295, 9.6515)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123158 #583912
analogous
#125458 #123158 #161258
triadic
#123158 #581231 #315812
tetradic
#123158 #581254 #583912 #125816
square
#123158 #581254 #583912 #125816
split-complementary
#123158 #581612 #545812
monochromatic
#050E19 #081525 #123158 #1C4D8B #276ABE

Accessibility & contrast

On white

13.08
#123158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#123158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123158
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123158#FFFFFF#000000##FFFFFF
##1231581.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#132E57
Tritanopia (blue-blind)
#003A40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #123158;
/* rgb */ color: rgb(18, 49, 88);
/* oklch */ color: oklch(31.3% 0.079 255.6);
Tailwind
colors: {
  custom: {
    50: '#5b6887',
    500: '#123158',
    950: '#000000',
  },
}
SCSS
$custom: #123158;
$custom-light: #5b6887;
$custom-dark: #000000;
JSON
{
  "hex": "#123158",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 88
  },
  "hsl": {
    "h": 213.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31271,
    "c": 0.07909,
    "h": 255.6
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#123158
secondary
#916835
accent
#9E3FE9
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #123158

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

Preview Lab → · Contrast checker → · Palette generator →

#123158 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva