#123F7E#123F7E

#123F7E is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.117 H 258.0°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#123F7E
RGBrgb(18, 63, 126)
HSLhsl(215, 75%, 28%)
HSVhsv(215, 86%, 49%)
CMYKcmyk(85.7%, 50%, 0%, 50.6%)
CIE-LABlab(27.27, 10.26, -39.90)
CIE-LCHlch(27.27, 41.20, 284.41°)
OKLaboklab(37.61% -0.0244 -0.1148)
OKLCHoklch(37.61% 0.117 258)
XYZxyz(5.7915, 5.1893, 20.4310)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123F7E #7E5112
analogous
#12757E #123F7E #1B127E
triadic
#123F7E #7E123F #3F7E12
tetradic
#123F7E #7E1275 #7E5112 #127E1B
square
#123F7E #7E1275 #7E5112 #127E1B
split-complementary
#123F7E #7E1B12 #757E12
monochromatic
#040D1B #0A2448 #123F7E #1A5AB4 #2A76E1

Accessibility & contrast

On white

10.30
#123F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#123F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123F7E
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123F7E#FFFFFF#000000##FFFFFF
##123F7E1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4680
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #123f7e;
/* rgb */ color: rgb(18, 63, 126);
/* oklch */ color: oklch(37.6% 0.117 258.0);
Tailwind
colors: {
  custom: {
    50: '#6473a4',
    500: '#123f7e',
    950: '#000000',
  },
}
SCSS
$custom: #123f7e;
$custom-light: #6473a4;
$custom-dark: #000000;
JSON
{
  "hex": "#123f7e",
  "rgb": {
    "r": 18,
    "g": 63,
    "b": 126
  },
  "hsl": {
    "h": 215,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37612,
    "c": 0.11734,
    "h": 258
  },
  "luminance": 0.0519
}

Semantic roles & 50–950 ramp

primary
#123F7E
secondary
#B48038
accent
#A436F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06080F
muted
#7A7B7F

Preview Lab

Preview with #123F7E

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

Preview Lab → · Contrast checker → · Palette generator →

#123F7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva