#121F7E#121F7E

#121F7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.158 H 268.0°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#121F7E
RGBrgb(18, 31, 126)
HSLhsl(233, 75%, 28%)
HSVhsv(233, 86%, 49%)
CMYKcmyk(85.7%, 75.4%, 0%, 50.6%)
CIE-LABlab(18.43, 32.54, -54.33)
CIE-LCHlch(18.43, 63.33, 300.92°)
OKLaboklab(31.02% -0.0055 -0.1575)
OKLCHoklch(31.02% 0.158 268)
XYZxyz(4.5040, 2.6144, 20.0019)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F7E #7E7112
analogous
#12557E #121F7E #3B127E
triadic
#121F7E #7E121F #1F7E12
tetradic
#121F7E #7E1255 #7E7112 #127E3B
square
#121F7E #7E1255 #7E7112 #127E3B
split-complementary
#121F7E #7E3B12 #557E12
monochromatic
#04071B #0A1248 #121F7E #1A2CB4 #2A40E1

Accessibility & contrast

On white

13.79
#121F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#121F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F7E
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F7E#FFFFFF#000000##FFFFFF
##121F7E1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #121f7e;
/* rgb */ color: rgb(18, 31, 126);
/* oklch */ color: oklch(31.0% 0.158 268.0);
Tailwind
colors: {
  custom: {
    50: '#675ba4',
    500: '#121f7e',
    950: '#000000',
  },
}
SCSS
$custom: #121f7e;
$custom-light: #675ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#121f7e",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 232.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31017,
    "c": 0.15757,
    "h": 268
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#121F7E
secondary
#B4A538
accent
#DB36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #121F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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