#12256A#12256A

#12256A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.0% C 0.123 H 266.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#12256A
RGBrgb(18, 37, 106)
HSLhsl(227, 71%, 24%)
HSVhsv(227, 83%, 42%)
CMYKcmyk(83%, 65.1%, 0%, 58.4%)
CIE-LABlab(17.88, 20.49, -42.36)
CIE-LCHlch(17.88, 47.05, 295.81°)
OKLaboklab(29.99% -0.0071 -0.1225)
OKLCHoklch(29.99% 0.123 266.7)
XYZxyz(3.5116, 2.4919, 13.9288)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12256A #6A5712
analogous
#12516A #12256A #2B126A
triadic
#12256A #6A1225 #256A12
tetradic
#12256A #6A1251 #6A5712 #126A2B
square
#12256A #6A1251 #6A5712 #126A2B
split-complementary
#12256A #6A2B12 #516A12
monochromatic
#04091A #091336 #12256A #1B379E #244AD3

Accessibility & contrast

On white

14.01
#12256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#12256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12256A
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12256A#FFFFFF#000000##FFFFFF
##12256A1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#003743
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12256a;
/* rgb */ color: rgb(18, 37, 106);
/* oklch */ color: oklch(30.0% 0.123 266.7);
Tailwind
colors: {
  custom: {
    50: '#615f95',
    500: '#12256a',
    950: '#000000',
  },
}
SCSS
$custom: #12256a;
$custom-light: #615f95;
$custom-dark: #000000;
JSON
{
  "hex": "#12256a",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 227.045,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29991,
    "c": 0.1227,
    "h": 266.7
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#12256A
secondary
#A28A36
accent
#C73AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #12256A

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

Preview Lab → · Contrast checker → · Palette generator →

#12256A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva