#12234E#12234E

#12234E is a dark, moderate blue. Relative luminance 0.019; OKLCH L 26.9% C 0.082 H 265.1°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#12234E
RGBrgb(18, 35, 78)
HSLhsl(223, 63%, 19%)
HSVhsv(223, 77%, 31%)
CMYKcmyk(76.9%, 55.1%, 0%, 69.4%)
CIE-LABlab(14.85, 10.07, -28.62)
CIE-LCHlch(14.85, 30.34, 289.39°)
OKLaboklab(26.95% -0.0071 -0.0822)
OKLCHoklch(26.95% 0.082 265.1)
XYZxyz(2.2251, 1.8805, 7.4520)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12234E #4E3D12
analogous
#12414E #12234E #1F124E
triadic
#12234E #4E1223 #234E12
tetradic
#12234E #4E1241 #4E3D12 #124E1F
square
#12234E #4E1241 #4E3D12 #124E1F
split-complementary
#12234E #4E1F12 #414E12
monochromatic
#060B19 #070D1C #12234E #1D3980 #2950B1

Accessibility & contrast

On white

15.26
#12234E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#12234E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12234E
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12234E#FFFFFF#000000##FFFFFF
##12234E1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2850
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#002D34
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #12234e;
/* rgb */ color: rgb(18, 35, 78);
/* oklch */ color: oklch(26.9% 0.082 265.1);
Tailwind
colors: {
  custom: {
    50: '#595d80',
    500: '#12234e',
    950: '#000000',
  },
}
SCSS
$custom: #12234e;
$custom-light: #595d80;
$custom-dark: #000000;
JSON
{
  "hex": "#12234e",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 78
  },
  "hsl": {
    "h": 223,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26948,
    "c": 0.08248,
    "h": 265.1
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#12234E
secondary
#877035
accent
#B742E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #12234E

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

Preview Lab → · Contrast checker → · Palette generator →

#12234E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva