#121B52#121B52

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

Color values

HEX#121B52
RGBrgb(18, 27, 82)
HSLhsl(232, 64%, 20%)
HSVhsv(232, 78%, 32%)
CMYKcmyk(78%, 67.1%, 0%, 67.8%)
CIE-LABlab(12.74, 17.82, -34.77)
CIE-LCHlch(12.74, 39.07, 297.13°)
OKLaboklab(25.48% 0.0007 -0.1004)
OKLCHoklch(25.48% 0.1 270.4)
XYZxyz(2.1639, 1.5214, 8.1606)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B52 #524912
analogous
#123B52 #121B52 #291252
triadic
#121B52 #52121B #1B5212
tetradic
#121B52 #52123B #524912 #125229
square
#121B52 #52123B #524912 #125229
split-complementary
#121B52 #522912 #3B5212
monochromatic
#060819 #070A20 #121B52 #1D2C84 #283CB6

Accessibility & contrast

On white

16.10
#121B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B52
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B52#FFFFFF#000000##FFFFFF
##121B521.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121b52;
/* rgb */ color: rgb(18, 27, 82);
/* oklch */ color: oklch(25.5% 0.100 270.4);
Tailwind
colors: {
  custom: {
    50: '#5b5783',
    500: '#121b52',
    950: '#000000',
  },
}
SCSS
$custom: #121b52;
$custom-light: #5b5783;
$custom-dark: #000000;
JSON
{
  "hex": "#121b52",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 231.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25478,
    "c": 0.10037,
    "h": 270.4
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#121B52
secondary
#8B7F35
accent
#D041E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121B52

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

Preview Lab → · Contrast checker → · Palette generator →

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