#123257#123257

#123257 is a dark, moderate cyan. Relative luminance 0.031; OKLCH L 31.5% C 0.076 H 254.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#123257
RGBrgb(18, 50, 87)
HSLhsl(212, 66%, 21%)
HSVhsv(212, 79%, 34%)
CMYKcmyk(79.3%, 42.5%, 0%, 65.9%)
CIE-LABlab(20.43, 2.89, -25.74)
CIE-LCHlch(20.43, 25.90, 276.41°)
OKLaboklab(31.46% -0.0209 -0.0734)
OKLCHoklch(31.46% 0.076 254.1)
XYZxyz(3.1097, 3.0976, 9.4490)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123257 #573712
analogous
#125457 #123257 #151257
triadic
#123257 #571232 #325712
tetradic
#123257 #571254 #573712 #125715
square
#123257 #571254 #573712 #125715
split-complementary
#123257 #571512 #545712
monochromatic
#050F19 #081524 #123257 #1C4F8A #276CBC

Accessibility & contrast

On white

12.97
#123257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#123257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123257
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123257#FFFFFF#000000##FFFFFF
##1232571.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213558
Deuteranopia (green-blind)
#162E56
Tritanopia (blue-blind)
#003B40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #123257;
/* rgb */ color: rgb(18, 50, 87);
/* oklch */ color: oklch(31.5% 0.076 254.1);
Tailwind
colors: {
  custom: {
    50: '#5b6986',
    500: '#123257',
    950: '#000000',
  },
}
SCSS
$custom: #123257;
$custom-light: #5b6986;
$custom-dark: #000000;
JSON
{
  "hex": "#123257",
  "rgb": {
    "r": 18,
    "g": 50,
    "b": 87
  },
  "hsl": {
    "h": 212.174,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3146,
    "c": 0.07633,
    "h": 254.1
  },
  "luminance": 0.03098
}

Semantic roles & 50–950 ramp

primary
#123257
secondary
#906635
accent
#9A3FE9
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #123257

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

Preview Lab → · Contrast checker → · Palette generator →

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