#12285E#12285E

#12285E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.101 H 264.3°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#12285E
RGBrgb(18, 40, 94)
HSLhsl(223, 68%, 22%)
HSVhsv(223, 81%, 37%)
CMYKcmyk(80.9%, 57.4%, 0%, 63.1%)
CIE-LABlab(17.71, 13.20, -34.75)
CIE-LCHlch(17.71, 37.17, 290.81°)
OKLaboklab(29.53% -0.0099 -0.1001)
OKLCHoklch(29.53% 0.101 264.3)
XYZxyz(3.0279, 2.4540, 10.9016)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12285E #5E4812
analogous
#124E5E #12285E #22125E
triadic
#12285E #5E1228 #285E12
tetradic
#12285E #5E124E #5E4812 #125E22
square
#12285E #5E124E #5E4812 #125E22
split-complementary
#12285E #5E2212 #4E5E12
monochromatic
#050B1A #08122B #12285E #1C3E91 #2654C5

Accessibility & contrast

On white

14.09
#12285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12285E
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12285E#FFFFFF#000000##FFFFFF
##12285E1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012F60
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12285e;
/* rgb */ color: rgb(18, 40, 94);
/* oklch */ color: oklch(29.5% 0.101 264.3);
Tailwind
colors: {
  custom: {
    50: '#5d618c',
    500: '#12285e',
    950: '#000000',
  },
}
SCSS
$custom: #12285e;
$custom-light: #5d618c;
$custom-dark: #000000;
JSON
{
  "hex": "#12285e",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 222.632,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2953,
    "c": 0.1006,
    "h": 264.3
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#12285E
secondary
#967A35
accent
#B83DEB
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12285E

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

Preview Lab → · Contrast checker → · Palette generator →

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