#12236A#12236A

#12236A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.6% C 0.125 H 267.4°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#12236A
RGBrgb(18, 35, 106)
HSLhsl(228, 71%, 24%)
HSVhsv(228, 83%, 42%)
CMYKcmyk(83%, 67%, 0%, 58.4%)
CIE-LABlab(17.32, 21.93, -43.27)
CIE-LCHlch(17.32, 48.51, 296.88°)
OKLaboklab(29.58% -0.0058 -0.1252)
OKLCHoklch(29.58% 0.125 267.4)
XYZxyz(3.4511, 2.3709, 13.9086)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12236A #6A5912
analogous
#124F6A #12236A #2D126A
triadic
#12236A #6A1223 #236A12
tetradic
#12236A #6A124F #6A5912 #126A2D
square
#12236A #6A124F #6A5912 #126A2D
split-complementary
#12236A #6A2D12 #4F6A12
monochromatic
#04091A #091236 #12236A #1B349E #2446D3

Accessibility & contrast

On white

14.25
#12236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#12236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12236A
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12236A#FFFFFF#000000##FFFFFF
##12236A1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#003643
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12236a;
/* rgb */ color: rgb(18, 35, 106);
/* oklch */ color: oklch(29.6% 0.125 267.4);
Tailwind
colors: {
  custom: {
    50: '#615d95',
    500: '#12236a',
    950: '#000000',
  },
}
SCSS
$custom: #12236a;
$custom-light: #615d95;
$custom-dark: #000000;
JSON
{
  "hex": "#12236a",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 228.409,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29578,
    "c": 0.12533,
    "h": 267.4
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#12236A
secondary
#A28D36
accent
#CB3AEE
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #12236A

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

Preview Lab → · Contrast checker → · Palette generator →

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