#123F81#123F81

#123F81 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 37.8% C 0.122 H 258.7°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#123F81
RGBrgb(18, 63, 129)
HSLhsl(216, 76%, 29%)
HSVhsv(216, 86%, 51%)
CMYKcmyk(86%, 51.2%, 0%, 49.4%)
CIE-LABlab(27.48, 11.52, -41.43)
CIE-LCHlch(27.48, 43.00, 285.54°)
OKLaboklab(37.85% -0.0239 -0.1193)
OKLCHoklch(37.85% 0.122 258.7)
XYZxyz(5.9880, 5.2678, 21.4658)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123F81 #815412
analogous
#127781 #123F81 #1D1281
triadic
#123F81 #81123F #3F8112
tetradic
#123F81 #811277 #815412 #12811D
square
#123F81 #811277 #815412 #12811D
split-complementary
#123F81 #811D12 #778112
monochromatic
#040D1B #0B254B #123F81 #1959B7 #2C76E2

Accessibility & contrast

On white

10.22
#123F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#123F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123F81
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123F81#FFFFFF#000000##FFFFFF
##123F811.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164683
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #123f81;
/* rgb */ color: rgb(18, 63, 129);
/* oklch */ color: oklch(37.8% 0.122 258.7);
Tailwind
colors: {
  custom: {
    50: '#6573a6',
    500: '#123f81',
    950: '#000000',
  },
}
SCSS
$custom: #123f81;
$custom-light: #6573a6;
$custom-dark: #000000;
JSON
{
  "hex": "#123f81",
  "rgb": {
    "r": 18,
    "g": 63,
    "b": 129
  },
  "hsl": {
    "h": 215.676,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37848,
    "c": 0.12164,
    "h": 258.7
  },
  "luminance": 0.05269
}

Semantic roles & 50–950 ramp

primary
#123F81
secondary
#B78338
accent
#A636F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #123F81

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

Preview Lab → · Contrast checker → · Palette generator →

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