#123A7C#123A7C

#123A7C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.3% C 0.121 H 260.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#123A7C
RGBrgb(18, 58, 124)
HSLhsl(217, 75%, 28%)
HSVhsv(217, 85%, 49%)
CMYKcmyk(85.5%, 53.2%, 0%, 51.4%)
CIE-LABlab(25.59, 12.93, -41.35)
CIE-LCHlch(25.59, 43.33, 287.37°)
OKLaboklab(36.28% -0.0208 -0.1191)
OKLCHoklch(36.28% 0.121 260.1)
XYZxyz(5.3993, 4.6093, 19.6700)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123A7C #7C5412
analogous
#126F7C #123A7C #1F127C
triadic
#123A7C #7C123A #3A7C12
tetradic
#123A7C #7C126F #7C5412 #127C1F
square
#123A7C #7C126F #7C5412 #127C1F
split-complementary
#123A7C #7C1F12 #6F7C12
monochromatic
#040C1B #0A2147 #123A7C #1A53B1 #296EE0

Accessibility & contrast

On white

10.93
#123A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#123A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123A7C
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123A7C#FFFFFF#000000##FFFFFF
##123A7C1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D427E
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #123a7c;
/* rgb */ color: rgb(18, 58, 124);
/* oklch */ color: oklch(36.3% 0.121 260.1);
Tailwind
colors: {
  custom: {
    50: '#646fa2',
    500: '#123a7c',
    950: '#000000',
  },
}
SCSS
$custom: #123a7c;
$custom-light: #646fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#123a7c",
  "rgb": {
    "r": 18,
    "g": 58,
    "b": 124
  },
  "hsl": {
    "h": 217.358,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3628,
    "c": 0.12096,
    "h": 260.1
  },
  "luminance": 0.0461
}

Semantic roles & 50–950 ramp

primary
#123A7C
secondary
#B28438
accent
#AB37F1
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #123A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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