#123F8A#123F8A

#123F8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.134 H 260.3°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#123F8A
RGBrgb(18, 63, 138)
HSLhsl(218, 77%, 31%)
HSVhsv(218, 87%, 54%)
CMYKcmyk(87%, 54.3%, 0%, 45.9%)
CIE-LABlab(28.16, 15.29, -45.93)
CIE-LCHlch(28.16, 48.41, 288.42°)
OKLaboklab(38.58% -0.0227 -0.1325)
OKLCHoklch(38.58% 0.134 260.3)
XYZxyz(6.6127, 5.5178, 24.7563)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123F8A #8A5D12
analogous
#127B8A #123F8A #21128A
triadic
#123F8A #8A123F #3F8A12
tetradic
#123F8A #8A127B #8A5D12 #128A21
square
#123F8A #8A127B #8A5D12 #128A21
split-complementary
#123F8A #8A2112 #7B8A12
monochromatic
#040E1E #0B2654 #123F8A #1958C0 #3275E4

Accessibility & contrast

On white

9.98
#123F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#123F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123F8A
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123F8A#FFFFFF#000000##FFFFFF
##123F8A1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04488D
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #123f8a;
/* rgb */ color: rgb(18, 63, 138);
/* oklch */ color: oklch(38.6% 0.134 260.3);
Tailwind
colors: {
  custom: {
    50: '#6873ad',
    500: '#123f8a',
    950: '#000000',
  },
}
SCSS
$custom: #123f8a;
$custom-light: #6873ad;
$custom-dark: #000000;
JSON
{
  "hex": "#123f8a",
  "rgb": {
    "r": 18,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 217.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38581,
    "c": 0.13444,
    "h": 260.3
  },
  "luminance": 0.05519
}

Semantic roles & 50–950 ramp

primary
#123F8A
secondary
#BF8D39
accent
#AC34F3
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #123F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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