#123E9F#123E9F

#123E9F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.165 H 262.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#123E9F
RGBrgb(18, 62, 159)
HSLhsl(221, 80%, 35%)
HSVhsv(221, 89%, 62%)
CMYKcmyk(88.7%, 61%, 0%, 37.6%)
CIE-LABlab(29.60, 24.62, -56.44)
CIE-LCHlch(29.60, 61.57, 293.57°)
OKLaboklab(40.21% -0.0204 -0.1634)
OKLCHoklch(40.21% 0.165 262.9)
XYZxyz(8.2278, 6.0760, 33.5333)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123E9F #9F7312
analogous
#12849F #123E9F #2D129F
triadic
#123E9F #9F123E #3E9F12
tetradic
#123E9F #9F1284 #9F7312 #129F2D
square
#123E9F #9F1284 #9F7312 #129F2D
split-complementary
#123E9F #9F2D12 #849F12
monochromatic
#061331 #0C2968 #123E9F #1853D6 #4276EA

Accessibility & contrast

On white

9.48
#123E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#123E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123E9F
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123E9F#FFFFFF#000000##FFFFFF
##123E9F1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #123e9f;
/* rgb */ color: rgb(18, 62, 159);
/* oklch */ color: oklch(40.2% 0.165 262.9);
Tailwind
colors: {
  custom: {
    50: '#6e72bc',
    500: '#123e9f',
    950: '#000000',
  },
}
SCSS
$custom: #123e9f;
$custom-light: #6e72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#123e9f",
  "rgb": {
    "r": 18,
    "g": 62,
    "b": 159
  },
  "hsl": {
    "h": 221.277,
    "s": 79.661,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40209,
    "c": 0.16465,
    "h": 262.9
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#123E9F
secondary
#CAA043
accent
#B932F6
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #123E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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