#12285F#12285F

#12285F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.102 H 264.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#12285F
RGBrgb(18, 40, 95)
HSLhsl(223, 68%, 22%)
HSVhsv(223, 81%, 37%)
CMYKcmyk(81.1%, 57.9%, 0%, 62.7%)
CIE-LABlab(17.79, 13.63, -35.28)
CIE-LCHlch(17.79, 37.82, 291.13°)
OKLaboklab(29.62% -0.0098 -0.1017)
OKLCHoklch(29.62% 0.102 264.5)
XYZxyz(3.0731, 2.4721, 11.1394)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12285F #5F4912
analogous
#124F5F #12285F #22125F
triadic
#12285F #5F1228 #285F12
tetradic
#12285F #5F124F #5F4912 #125F22
square
#12285F #5F124F #5F4912 #125F22
split-complementary
#12285F #5F2212 #4F5F12
monochromatic
#050B1A #08122C #12285F #1C3E92 #2553C6

Accessibility & contrast

On white

14.05
#12285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12285F
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12285F#FFFFFF#000000##FFFFFF
##12285F1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12285f;
/* rgb */ color: rgb(18, 40, 95);
/* oklch */ color: oklch(29.6% 0.102 264.5);
Tailwind
colors: {
  custom: {
    50: '#5d618d',
    500: '#12285f',
    950: '#000000',
  },
}
SCSS
$custom: #12285f;
$custom-light: #5d618d;
$custom-dark: #000000;
JSON
{
  "hex": "#12285f",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 222.857,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.10214,
    "h": 264.5
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#12285F
secondary
#977B36
accent
#B93DEB
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12285F

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

Preview Lab → · Contrast checker → · Palette generator →

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