#121F4C#121F4C

#121F4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.085 H 267.8°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#121F4C
RGBrgb(18, 31, 76)
HSLhsl(227, 62%, 18%)
HSVhsv(227, 76%, 30%)
CMYKcmyk(76.3%, 59.2%, 0%, 70.2%)
CIE-LABlab(13.41, 12.25, -29.57)
CIE-LCHlch(13.41, 32.01, 292.51°)
OKLaboklab(25.81% -0.0032 -0.085)
OKLCHoklch(25.81% 0.085 267.8)
XYZxyz(2.0435, 1.6302, 7.0430)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F4C #4C3F12
analogous
#123C4C #121F4C #22124C
triadic
#121F4C #4C121F #1F4C12
tetradic
#121F4C #4C123C #4C3F12 #124C22
square
#121F4C #4C123C #4C3F12 #124C22
split-complementary
#121F4C #4C2212 #3C4C12
monochromatic
#060A19 #060B1B #121F4C #1E337D #2947AF

Accessibility & contrast

On white

15.84
#121F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F4C
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F4C#FFFFFF#000000##FFFFFF
##121F4C1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121f4c;
/* rgb */ color: rgb(18, 31, 76);
/* oklch */ color: oklch(25.8% 0.085 267.8);
Tailwind
colors: {
  custom: {
    50: '#595a7e',
    500: '#121f4c',
    950: '#000000',
  },
}
SCSS
$custom: #121f4c;
$custom-light: #595a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#121f4c",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 226.552,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25809,
    "c": 0.08511,
    "h": 267.8
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#121F4C
secondary
#857335
accent
#C143E5
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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