#123E8A#123E8A

#123E8A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.136 H 260.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#123E8A
RGBrgb(18, 62, 138)
HSLhsl(218, 77%, 31%)
HSVhsv(218, 87%, 54%)
CMYKcmyk(87%, 55.1%, 0%, 45.9%)
CIE-LABlab(27.87, 15.99, -46.41)
CIE-LCHlch(27.87, 49.08, 289.02°)
OKLaboklab(38.36% -0.022 -0.1339)
OKLCHoklch(38.36% 0.136 260.7)
XYZxyz(6.5579, 5.4080, 24.7380)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123E8A #8A5E12
analogous
#127A8A #123E8A #22128A
triadic
#123E8A #8A123E #3E8A12
tetradic
#123E8A #8A127A #8A5E12 #128A22
square
#123E8A #8A127A #8A5E12 #128A22
split-complementary
#123E8A #8A2212 #7A8A12
monochromatic
#040D1E #0B2654 #123E8A #1956C0 #3273E4

Accessibility & contrast

On white

10.09
#123E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#123E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123E8A
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123E8A#FFFFFF#000000##FFFFFF
##123E8A1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #123e8a;
/* rgb */ color: rgb(18, 62, 138);
/* oklch */ color: oklch(38.4% 0.136 260.7);
Tailwind
colors: {
  custom: {
    50: '#6872ad',
    500: '#123e8a',
    950: '#000000',
  },
}
SCSS
$custom: #123e8a;
$custom-light: #6872ad;
$custom-dark: #000000;
JSON
{
  "hex": "#123e8a",
  "rgb": {
    "r": 18,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 218,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38357,
    "c": 0.13572,
    "h": 260.7
  },
  "luminance": 0.05409
}

Semantic roles & 50–950 ramp

primary
#123E8A
secondary
#BF8E39
accent
#AD34F3
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #123E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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