#123F7F#123F7F

#123F7F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.119 H 258.2°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#123F7F
RGBrgb(18, 63, 127)
HSLhsl(215, 75%, 28%)
HSVhsv(215, 86%, 50%)
CMYKcmyk(85.8%, 50.4%, 0%, 50.2%)
CIE-LABlab(27.34, 10.68, -40.41)
CIE-LCHlch(27.34, 41.80, 284.80°)
OKLaboklab(37.69% -0.0242 -0.1163)
OKLCHoklch(37.69% 0.119 258.2)
XYZxyz(5.8563, 5.2152, 20.7725)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123F7F #7F5212
analogous
#12757F #123F7F #1B127F
triadic
#123F7F #7F123F #3F7F12
tetradic
#123F7F #7F1275 #7F5212 #127F1B
square
#123F7F #7F1275 #7F5212 #127F1B
split-complementary
#123F7F #7F1B12 #757F12
monochromatic
#040D1B #0A2449 #123F7F #1A5AB5 #2B76E1

Accessibility & contrast

On white

10.28
#123F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#123F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123F7F
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123F7F#FFFFFF#000000##FFFFFF
##123F7F1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194681
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #123f7f;
/* rgb */ color: rgb(18, 63, 127);
/* oklch */ color: oklch(37.7% 0.119 258.2);
Tailwind
colors: {
  custom: {
    50: '#6573a5',
    500: '#123f7f',
    950: '#000000',
  },
}
SCSS
$custom: #123f7f;
$custom-light: #6573a5;
$custom-dark: #000000;
JSON
{
  "hex": "#123f7f",
  "rgb": {
    "r": 18,
    "g": 63,
    "b": 127
  },
  "hsl": {
    "h": 215.229,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3769,
    "c": 0.11878,
    "h": 258.2
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#123F7F
secondary
#B58138
accent
#A436F2
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#06080F
muted
#7A7B7F

Preview Lab

Preview with #123F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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