#121EB7#121EB7

#121EB7 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.227 H 266.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#121EB7
RGBrgb(18, 30, 183)
HSLhsl(236, 82%, 39%)
HSVhsv(236, 90%, 72%)
CMYKcmyk(90.2%, 83.6%, 0%, 28.2%)
CIE-LABlab(25.18, 52.54, -78.15)
CIE-LCHlch(25.18, 94.17, 303.91°)
OKLaboklab(37.77% -0.0138 -0.2264)
OKLCHoklch(37.77% 0.227 266.5)
XYZxyz(9.2580, 4.4748, 45.1663)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121EB7 #B7AB12
analogous
#1271B7 #121EB7 #5812B7
triadic
#121EB7 #B7121E #1EB712
tetradic
#121EB7 #B71271 #B7AB12 #12B758
square
#121EB7 #B71271 #B7AB12 #12B758
split-complementary
#121EB7 #B75812 #71B712
monochromatic
#070C48 #0D157F #121EB7 #1D2CE9 #5560EE

Accessibility & contrast

On white

11.08
#121EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#121EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121EB7
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121EB7#FFFFFF#000000##FFFFFF
##121EB71.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044BB
Deuteranopia (green-blind)
#0033B5
Tritanopia (blue-blind)
#00516D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #121eb7;
/* rgb */ color: rgb(18, 30, 183);
/* oklch */ color: oklch(37.8% 0.227 266.5);
Tailwind
colors: {
  custom: {
    50: '#785ece',
    500: '#121eb7',
    950: '#000000',
  },
}
SCSS
$custom: #121eb7;
$custom-light: #785ece;
$custom-dark: #000000;
JSON
{
  "hex": "#121eb7",
  "rgb": {
    "r": 18,
    "g": 30,
    "b": 183
  },
  "hsl": {
    "h": 235.636,
    "s": 82.09,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37769,
    "c": 0.2268,
    "h": 266.5
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#121EB7
secondary
#D1C854
accent
#EA2FF8
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #121EB7

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

Preview Lab → · Contrast checker → · Palette generator →

#121EB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva