#12235A#12235A

#12235A is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.101 H 266.6°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#12235A
RGBrgb(18, 35, 90)
HSLhsl(226, 67%, 21%)
HSVhsv(226, 80%, 35%)
CMYKcmyk(80%, 61.1%, 0%, 64.7%)
CIE-LABlab(15.84, 15.22, -35.12)
CIE-LCHlch(15.84, 38.27, 293.43°)
OKLaboklab(28.02% -0.0059 -0.1013)
OKLCHoklch(28.02% 0.101 266.6)
XYZxyz(2.6953, 2.0686, 9.9281)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12235A #5A4912
analogous
#12475A #12235A #25125A
triadic
#12235A #5A1223 #235A12
tetradic
#12235A #5A1247 #5A4912 #125A25
square
#12235A #5A1247 #5A4912 #125A25
split-complementary
#12235A #5A2512 #475A12
monochromatic
#050A1A #080F27 #12235A #1C378D #264BC0

Accessibility & contrast

On white

14.85
#12235A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12235A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12235A
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12235A#FFFFFF#000000##FFFFFF
##12235A1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#00313A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12235a;
/* rgb */ color: rgb(18, 35, 90);
/* oklch */ color: oklch(28.0% 0.101 266.6);
Tailwind
colors: {
  custom: {
    50: '#5c5d89',
    500: '#12235a',
    950: '#000000',
  },
}
SCSS
$custom: #12235a;
$custom-light: #5c5d89;
$custom-dark: #000000;
JSON
{
  "hex": "#12235a",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 90
  },
  "hsl": {
    "h": 225.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28016,
    "c": 0.10145,
    "h": 266.6
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#12235A
secondary
#937D35
accent
#C13EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #12235A

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

Preview Lab → · Contrast checker → · Palette generator →

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