#121F6A#121F6A

#121F6A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.130 H 268.5°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#121F6A
RGBrgb(18, 31, 106)
HSLhsl(231, 71%, 24%)
HSVhsv(231, 83%, 42%)
CMYKcmyk(83%, 70.8%, 0%, 58.4%)
CIE-LABlab(16.25, 24.77, -45.03)
CIE-LCHlch(16.25, 51.39, 298.81°)
OKLaboklab(28.79% -0.0034 -0.1304)
OKLCHoklch(28.79% 0.13 268.5)
XYZxyz(3.3401, 2.1488, 13.8716)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F6A #6A5D12
analogous
#124B6A #121F6A #31126A
triadic
#121F6A #6A121F #1F6A12
tetradic
#121F6A #6A124B #6A5D12 #126A31
square
#121F6A #6A124B #6A5D12 #126A31
split-complementary
#121F6A #6A3112 #4B6A12
monochromatic
#04081A #091036 #121F6A #1B2E9E #243ED3

Accessibility & contrast

On white

14.69
#121F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#121F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F6A
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F6A#FFFFFF#000000##FFFFFF
##121F6A1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #121f6a;
/* rgb */ color: rgb(18, 31, 106);
/* oklch */ color: oklch(28.8% 0.130 268.5);
Tailwind
colors: {
  custom: {
    50: '#615a95',
    500: '#121f6a',
    950: '#000000',
  },
}
SCSS
$custom: #121f6a;
$custom-light: #615a95;
$custom-dark: #000000;
JSON
{
  "hex": "#121f6a",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 231.136,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.2879,
    "c": 0.13043,
    "h": 268.5
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#121F6A
secondary
#A29236
accent
#D33AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #121F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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