#122783#122783

#122783 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.155 H 266.6°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#122783
RGBrgb(18, 39, 131)
HSLhsl(229, 76%, 29%)
HSVhsv(229, 86%, 51%)
CMYKcmyk(86.3%, 70.2%, 0%, 48.6%)
CIE-LABlab(20.90, 29.19, -53.43)
CIE-LCHlch(20.90, 60.88, 298.65°)
OKLaboklab(32.96% -0.0091 -0.1548)
OKLCHoklch(32.96% 0.155 266.6)
XYZxyz(5.0703, 3.2177, 21.8222)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122783 #836E12
analogous
#126083 #122783 #361283
triadic
#122783 #831227 #278312
tetradic
#122783 #831260 #836E12 #128336
square
#122783 #831260 #836E12 #128336
split-complementary
#122783 #833612 #608312
monochromatic
#04081B #0B174D #122783 #1937B9 #2D4FE2

Accessibility & contrast

On white

12.78
#122783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#122783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122783
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122783#FFFFFF#000000##FFFFFF
##1227831.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #122783;
/* rgb */ color: rgb(18, 39, 131);
/* oklch */ color: oklch(33.0% 0.155 266.6);
Tailwind
colors: {
  custom: {
    50: '#6861a8',
    500: '#122783',
    950: '#000000',
  },
}
SCSS
$custom: #122783;
$custom-light: #6861a8;
$custom-dark: #000000;
JSON
{
  "hex": "#122783",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 228.85,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32962,
    "c": 0.15512,
    "h": 266.6
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#122783
secondary
#B8A138
accent
#CF35F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #122783

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

Preview Lab → · Contrast checker → · Palette generator →

#122783 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva