#142275#142275

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

Color values

HEX#142275
RGBrgb(20, 34, 117)
HSLhsl(231, 71%, 27%)
HSVhsv(231, 83%, 46%)
CMYKcmyk(82.9%, 70.9%, 0%, 54.1%)
CIE-LABlab(18.26, 27.25, -48.85)
CIE-LCHlch(18.26, 55.94, 299.15°)
OKLaboklab(30.63% -0.0039 -0.1415)
OKLCHoklch(30.63% 0.142 268.4)
XYZxyz(4.0703, 2.5767, 17.1090)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#142275 #756714
analogous
#145375 #142275 #371475
triadic
#142275 #751422 #227514
tetradic
#142275 #751453 #756714 #147537
square
#142275 #751453 #756714 #147537
split-complementary
#142275 #753714 #537514
monochromatic
#04081A #0B1341 #142275 #1D31A9 #2943DA

Accessibility & contrast

On white

13.86
#142275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#142275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #142275
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##142275#FFFFFF#000000##FFFFFF
##1422751.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #142275;
/* rgb */ color: rgb(20, 34, 117);
/* oklch */ color: oklch(30.6% 0.142 268.4);
Tailwind
colors: {
  custom: {
    50: '#655d9e',
    500: '#142275',
    950: '#000000',
  },
}
SCSS
$custom: #142275;
$custom-light: #655d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#142275",
  "rgb": {
    "r": 20,
    "g": 34,
    "b": 117
  },
  "hsl": {
    "h": 231.34,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30629,
    "c": 0.14153,
    "h": 268.4
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#142275
secondary
#AB9B3A
accent
#D43AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #142275

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

Preview Lab → · Contrast checker → · Palette generator →

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