#12285D#12285D

#12285D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.099 H 264.2°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#12285D
RGBrgb(18, 40, 93)
HSLhsl(222, 68%, 22%)
HSVhsv(222, 81%, 36%)
CMYKcmyk(80.6%, 57%, 0%, 63.5%)
CIE-LABlab(17.63, 12.77, -34.22)
CIE-LCHlch(17.63, 36.53, 290.47°)
OKLaboklab(29.44% -0.01 -0.0985)
OKLCHoklch(29.44% 0.099 264.2)
XYZxyz(2.9833, 2.4362, 10.6668)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12285D #5D4712
analogous
#124E5D #12285D #22125D
triadic
#12285D #5D1228 #285D12
tetradic
#12285D #5D124E #5D4712 #125D22
square
#12285D #5D124E #5D4712 #125D22
split-complementary
#12285D #5D2212 #4E5D12
monochromatic
#050B1A #08122A #12285D #1C3E90 #2654C4

Accessibility & contrast

On white

14.12
#12285D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#12285D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12285D
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12285D#FFFFFF#000000##FFFFFF
##12285D1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12285d;
/* rgb */ color: rgb(18, 40, 93);
/* oklch */ color: oklch(29.4% 0.099 264.2);
Tailwind
colors: {
  custom: {
    50: '#5d618b',
    500: '#12285d',
    950: '#000000',
  },
}
SCSS
$custom: #12285d;
$custom-light: #5d618b;
$custom-dark: #000000;
JSON
{
  "hex": "#12285d",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 93
  },
  "hsl": {
    "h": 222.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29442,
    "c": 0.09906,
    "h": 264.2
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#12285D
secondary
#957935
accent
#B83DEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12285D

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

Preview Lab → · Contrast checker → · Palette generator →

#12285D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva