#121B53#121B53

#121B53 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.6% C 0.102 H 270.4°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#121B53
RGBrgb(18, 27, 83)
HSLhsl(232, 64%, 20%)
HSVhsv(232, 78%, 33%)
CMYKcmyk(78.3%, 67.5%, 0%, 67.5%)
CIE-LABlab(12.84, 18.23, -35.29)
CIE-LCHlch(12.84, 39.72, 297.32°)
OKLaboklab(25.58% 0.0006 -0.1019)
OKLCHoklch(25.58% 0.102 270.4)
XYZxyz(2.2022, 1.5368, 8.3625)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B53 #534A12
analogous
#123C53 #121B53 #291253
triadic
#121B53 #53121B #1B5312
tetradic
#121B53 #53123C #534A12 #125329
square
#121B53 #53123C #534A12 #125329
split-complementary
#121B53 #532912 #3C5312
monochromatic
#050819 #070B21 #121B53 #1D2B85 #283CB8

Accessibility & contrast

On white

16.06
#121B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#121B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B53
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B53#FFFFFF#000000##FFFFFF
##121B531.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#001E52
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121b53;
/* rgb */ color: rgb(18, 27, 83);
/* oklch */ color: oklch(25.6% 0.102 270.4);
Tailwind
colors: {
  custom: {
    50: '#5b5784',
    500: '#121b53',
    950: '#000000',
  },
}
SCSS
$custom: #121b53;
$custom-light: #5b5784;
$custom-dark: #000000;
JSON
{
  "hex": "#121b53",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 231.692,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25579,
    "c": 0.10191,
    "h": 270.4
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#121B53
secondary
#8C8035
accent
#D040E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121B53

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

Preview Lab → · Contrast checker → · Palette generator →

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