#102157#102157

#102157 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.100 H 266.4°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#102157
RGBrgb(16, 33, 87)
HSLhsl(226, 69%, 20%)
HSVhsv(226, 82%, 34%)
CMYKcmyk(81.6%, 62.1%, 0%, 65.9%)
CIE-LABlab(14.88, 15.16, -34.68)
CIE-LCHlch(14.88, 37.85, 293.61°)
OKLaboklab(27.18% -0.0063 -0.1001)
OKLCHoklch(27.18% 0.1 266.4)
XYZxyz(2.4772, 1.8857, 9.2484)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#102157 #574610
analogous
#104457 #102157 #231057
triadic
#102157 #571021 #215710
tetradic
#102157 #571044 #574610 #105723
square
#102157 #571044 #574610 #105723
split-complementary
#102157 #572310 #445710
monochromatic
#050A1A #060D23 #102157 #1A358B #2348BE

Accessibility & contrast

On white

15.25
#102157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#102157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #102157
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##102157#FFFFFF#000000##FFFFFF
##1021571.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #102157;
/* rgb */ color: rgb(16, 33, 87);
/* oklch */ color: oklch(27.2% 0.100 266.4);
Tailwind
colors: {
  custom: {
    50: '#5b5b87',
    500: '#102157',
    950: '#000000',
  },
}
SCSS
$custom: #102157;
$custom-light: #5b5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#102157",
  "rgb": {
    "r": 16,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 225.634,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2718,
    "c": 0.10028,
    "h": 266.4
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#102157
secondary
#907A32
accent
#C23CEC
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #102157

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

Preview Lab → · Contrast checker → · Palette generator →

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