#122275#122275

#122275 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.5% C 0.142 H 267.7°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#122275
RGBrgb(18, 34, 117)
HSLhsl(230, 73%, 26%)
HSVhsv(230, 85%, 46%)
CMYKcmyk(84.6%, 70.9%, 0%, 54.1%)
CIE-LABlab(18.17, 27.08, -49.00)
CIE-LCHlch(18.17, 55.99, 298.92°)
OKLaboklab(30.54% -0.0058 -0.142)
OKLCHoklch(30.54% 0.142 267.7)
XYZxyz(4.0313, 2.5565, 17.1072)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122275 #756512
analogous
#125475 #122275 #341275
triadic
#122275 #751222 #227512
tetradic
#122275 #751254 #756512 #127534
square
#122275 #751254 #756512 #127534
split-complementary
#122275 #753412 #547512
monochromatic
#04081B #0A1340 #122275 #1A31AA #2442DD

Accessibility & contrast

On white

13.89
#122275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#122275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122275
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122275#FFFFFF#000000##FFFFFF
##1222751.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122275;
/* rgb */ color: rgb(18, 34, 117);
/* oklch */ color: oklch(30.5% 0.142 267.7);
Tailwind
colors: {
  custom: {
    50: '#645d9e',
    500: '#122275',
    950: '#000000',
  },
}
SCSS
$custom: #122275;
$custom-light: #645d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#122275",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 117
  },
  "hsl": {
    "h": 230.303,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30539,
    "c": 0.14208,
    "h": 267.7
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#122275
secondary
#AC9937
accent
#D238F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122275

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

Preview Lab → · Contrast checker → · Palette generator →

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