#123E8F#123E8F

#123E8F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.143 H 261.3°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#123E8F
RGBrgb(18, 62, 143)
HSLhsl(219, 78%, 32%)
HSVhsv(219, 87%, 56%)
CMYKcmyk(87.4%, 56.6%, 0%, 43.9%)
CIE-LABlab(28.26, 18.07, -48.85)
CIE-LCHlch(28.26, 52.08, 290.30°)
OKLaboklab(38.78% -0.0215 -0.1411)
OKLCHoklch(38.78% 0.143 261.3)
XYZxyz(6.9282, 5.5561, 26.6886)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123E8F #8F6312
analogous
#127D8F #123E8F #25128F
triadic
#123E8F #8F123E #3E8F12
tetradic
#123E8F #8F127D #8F6312 #128F25
square
#123E8F #8F127D #8F6312 #128F25
split-complementary
#123E8F #8F2512 #7D8F12
monochromatic
#040F22 #0B2659 #123E8F #1956C5 #3674E6

Accessibility & contrast

On white

9.95
#123E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#123E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123E8F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123E8F#FFFFFF#000000##FFFFFF
##123E8F1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #123e8f;
/* rgb */ color: rgb(18, 62, 143);
/* oklch */ color: oklch(38.8% 0.143 261.3);
Tailwind
colors: {
  custom: {
    50: '#6972b0',
    500: '#123e8f',
    950: '#000000',
  },
}
SCSS
$custom: #123e8f;
$custom-light: #6972b0;
$custom-dark: #000000;
JSON
{
  "hex": "#123e8f",
  "rgb": {
    "r": 18,
    "g": 62,
    "b": 143
  },
  "hsl": {
    "h": 218.88,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38783,
    "c": 0.14273,
    "h": 261.3
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#123E8F
secondary
#C3933A
accent
#B034F4
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080711
muted
#7A7A80

Preview Lab

Preview with #123E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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