#121262#121262

#121262 is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.6% C 0.134 H 271.7°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#121262
RGBrgb(18, 18, 98)
HSLhsl(240, 69%, 23%)
HSVhsv(240, 82%, 38%)
CMYKcmyk(81.6%, 81.6%, 0%, 61.6%)
CIE-LABlab(12.24, 30.26, -46.37)
CIE-LCHlch(12.24, 55.37, 303.13°)
OKLaboklab(25.64% 0.0041 -0.1342)
OKLCHoklch(25.64% 0.134 271.7)
XYZxyz(2.6696, 1.4428, 11.6907)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121262 #626212
analogous
#123A62 #121262 #3A1262
triadic
#121262 #621212 #126212
tetradic
#121262 #62123A #626212 #12623A
square
#121262 #62123A #626212 #12623A
split-complementary
#121262 #623A12 #3A6212
monochromatic
#05051A #09092E #121262 #1B1B96 #2525C9

Accessibility & contrast

On white

16.30
#121262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121262
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121262#FFFFFF#000000##FFFFFF
##1212621.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001C61
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121262;
/* rgb */ color: rgb(18, 18, 98);
/* oklch */ color: oklch(25.6% 0.134 271.7);
Tailwind
colors: {
  custom: {
    50: '#605190',
    500: '#121262',
    950: '#000000',
  },
}
SCSS
$custom: #121262;
$custom-light: #605190;
$custom-dark: #000000;
JSON
{
  "hex": "#121262",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 240,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.25642,
    "c": 0.1343,
    "h": 271.7
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#121262
secondary
#9A9A36
accent
#EC3CEC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #121262

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

Preview Lab → · Contrast checker → · Palette generator →

#121262 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva