#123E7F#123E7F

#123E7F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.5% C 0.120 H 258.7°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#123E7F
RGBrgb(18, 62, 127)
HSLhsl(216, 75%, 28%)
HSVhsv(216, 86%, 50%)
CMYKcmyk(85.8%, 51.2%, 0%, 50.2%)
CIE-LABlab(27.03, 11.38, -40.91)
CIE-LCHlch(27.03, 42.46, 285.54°)
OKLaboklab(37.46% -0.0235 -0.1177)
OKLCHoklch(37.46% 0.12 258.7)
XYZxyz(5.8014, 5.1054, 20.7542)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123E7F #7F5312
analogous
#12747F #123E7F #1D127F
triadic
#123E7F #7F123E #3E7F12
tetradic
#123E7F #7F1274 #7F5312 #127F1D
square
#123E7F #7F1274 #7F5312 #127F1D
split-complementary
#123E7F #7F1D12 #747F12
monochromatic
#040D1B #0A2449 #123E7F #1A58B5 #2B74E1

Accessibility & contrast

On white

10.39
#123E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#123E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123E7F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123E7F#FFFFFF#000000##FFFFFF
##123E7F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164581
Deuteranopia (green-blind)
#003B7E
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #123e7f;
/* rgb */ color: rgb(18, 62, 127);
/* oklch */ color: oklch(37.5% 0.120 258.7);
Tailwind
colors: {
  custom: {
    50: '#6572a5',
    500: '#123e7f',
    950: '#000000',
  },
}
SCSS
$custom: #123e7f;
$custom-light: #6572a5;
$custom-dark: #000000;
JSON
{
  "hex": "#123e7f",
  "rgb": {
    "r": 18,
    "g": 62,
    "b": 127
  },
  "hsl": {
    "h": 215.78,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37455,
    "c": 0.12007,
    "h": 258.7
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#123E7F
secondary
#B58238
accent
#A636F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #123E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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