#123F9F#123F9F

#123F9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.163 H 262.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#123F9F
RGBrgb(18, 63, 159)
HSLhsl(221, 80%, 35%)
HSVhsv(221, 89%, 62%)
CMYKcmyk(88.7%, 60.4%, 0%, 37.6%)
CIE-LABlab(29.88, 23.93, -55.99)
CIE-LCHlch(29.88, 60.89, 293.14°)
OKLaboklab(40.41% -0.021 -0.1621)
OKLCHoklch(40.41% 0.163 262.6)
XYZxyz(8.2827, 6.1858, 33.5516)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123F9F #9F7212
analogous
#12869F #123F9F #2C129F
triadic
#123F9F #9F123F #3F9F12
tetradic
#123F9F #9F1286 #9F7212 #129F2C
square
#123F9F #9F1286 #9F7212 #129F2C
split-complementary
#123F9F #9F2C12 #869F12
monochromatic
#061331 #0C2968 #123F9F #1855D6 #4277EA

Accessibility & contrast

On white

9.39
#123F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#123F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123F9F
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123F9F#FFFFFF#000000##FFFFFF
##123F9F1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #123f9f;
/* rgb */ color: rgb(18, 63, 159);
/* oklch */ color: oklch(40.4% 0.163 262.6);
Tailwind
colors: {
  custom: {
    50: '#6e73bc',
    500: '#123f9f',
    950: '#000000',
  },
}
SCSS
$custom: #123f9f;
$custom-light: #6e73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#123f9f",
  "rgb": {
    "r": 18,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 220.851,
    "s": 79.661,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40413,
    "c": 0.16341,
    "h": 262.6
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#123F9F
secondary
#CA9F43
accent
#B732F6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #123F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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