#12275E#12275E

#12275E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.102 H 264.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#12275E
RGBrgb(18, 39, 94)
HSLhsl(223, 68%, 22%)
HSVhsv(223, 81%, 37%)
CMYKcmyk(80.9%, 58.5%, 0%, 63.1%)
CIE-LABlab(17.40, 13.95, -35.25)
CIE-LCHlch(17.40, 37.91, 291.59°)
OKLaboklab(29.3% -0.0091 -0.1016)
OKLCHoklch(29.3% 0.102 264.9)
XYZxyz(2.9946, 2.3875, 10.8905)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12275E #5E4912
analogous
#124D5E #12275E #23125E
triadic
#12275E #5E1227 #275E12
tetradic
#12275E #5E124D #5E4912 #125E23
square
#12275E #5E124D #5E4912 #125E23
split-complementary
#12275E #5E2312 #4D5E12
monochromatic
#050B1A #08122B #12275E #1C3C91 #2652C5

Accessibility & contrast

On white

14.21
#12275E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#12275E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12275E
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12275E#FFFFFF#000000##FFFFFF
##12275E1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #12275e;
/* rgb */ color: rgb(18, 39, 94);
/* oklch */ color: oklch(29.3% 0.102 264.9);
Tailwind
colors: {
  custom: {
    50: '#5d608c',
    500: '#12275e',
    950: '#000000',
  },
}
SCSS
$custom: #12275e;
$custom-light: #5d608c;
$custom-dark: #000000;
JSON
{
  "hex": "#12275e",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 94
  },
  "hsl": {
    "h": 223.421,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29298,
    "c": 0.102,
    "h": 264.9
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#12275E
secondary
#967C35
accent
#BB3DEB
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12275E

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

Preview Lab → · Contrast checker → · Palette generator →

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