#123F8F#123F8F

#123F8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.0% C 0.141 H 261.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#123F8F
RGBrgb(18, 63, 143)
HSLhsl(218, 78%, 32%)
HSVhsv(218, 87%, 56%)
CMYKcmyk(87.4%, 55.9%, 0%, 43.9%)
CIE-LABlab(28.55, 17.37, -48.38)
CIE-LCHlch(28.55, 51.40, 289.75°)
OKLaboklab(39% -0.0221 -0.1397)
OKLCHoklch(39% 0.141 261)
XYZxyz(6.9831, 5.6659, 26.7069)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123F8F #8F6212
analogous
#127E8F #123F8F #24128F
triadic
#123F8F #8F123F #3F8F12
tetradic
#123F8F #8F127E #8F6212 #128F24
square
#123F8F #8F127E #8F6212 #128F24
split-complementary
#123F8F #8F2412 #7E8F12
monochromatic
#040F22 #0B2759 #123F8F #1957C5 #3675E6

Accessibility & contrast

On white

9.84
#123F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#123F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123F8F
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123F8F#FFFFFF#000000##FFFFFF
##123F8F1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #123f8f;
/* rgb */ color: rgb(18, 63, 143);
/* oklch */ color: oklch(39.0% 0.141 261.0);
Tailwind
colors: {
  custom: {
    50: '#6973b0',
    500: '#123f8f',
    950: '#000000',
  },
}
SCSS
$custom: #123f8f;
$custom-light: #6973b0;
$custom-dark: #000000;
JSON
{
  "hex": "#123f8f",
  "rgb": {
    "r": 18,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 218.4,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39002,
    "c": 0.14145,
    "h": 261
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#123F8F
secondary
#C3923A
accent
#AF34F4
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080811
muted
#7A7B80

Preview Lab

Preview with #123F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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