#123157#123157

#123157 is a dark, moderate cyan. Relative luminance 0.030; OKLCH L 31.2% C 0.078 H 255.1°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#123157
RGBrgb(18, 49, 87)
HSLhsl(213, 66%, 21%)
HSVhsv(213, 79%, 34%)
CMYKcmyk(79.3%, 43.7%, 0%, 65.9%)
CIE-LABlab(20.10, 3.60, -26.27)
CIE-LCHlch(20.10, 26.51, 277.81°)
OKLaboklab(31.2% -0.0199 -0.075)
OKLCHoklch(31.2% 0.078 255.1)
XYZxyz(3.0674, 3.0130, 9.4349)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123157 #573812
analogous
#125357 #123157 #151257
triadic
#123157 #571231 #315712
tetradic
#123157 #571253 #573812 #125715
square
#123157 #571253 #573812 #125715
split-complementary
#123157 #571512 #535712
monochromatic
#050E19 #081424 #123157 #1C4E8A #276ABC

Accessibility & contrast

On white

13.10
#123157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#123157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123157
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123157#FFFFFF#000000##FFFFFF
##1231571.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3459
Deuteranopia (green-blind)
#142E56
Tritanopia (blue-blind)
#003A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #123157;
/* rgb */ color: rgb(18, 49, 87);
/* oklch */ color: oklch(31.2% 0.078 255.1);
Tailwind
colors: {
  custom: {
    50: '#5b6886',
    500: '#123157',
    950: '#000000',
  },
}
SCSS
$custom: #123157;
$custom-light: #5b6886;
$custom-dark: #000000;
JSON
{
  "hex": "#123157",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 87
  },
  "hsl": {
    "h": 213.043,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31199,
    "c": 0.07757,
    "h": 255.1
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#123157
secondary
#906735
accent
#9C3FE9
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #123157

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

Preview Lab → · Contrast checker → · Palette generator →

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