#12275D#12275D

#12275D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.100 H 264.8°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#12275D
RGBrgb(18, 39, 93)
HSLhsl(223, 68%, 22%)
HSVhsv(223, 81%, 36%)
CMYKcmyk(80.6%, 58.1%, 0%, 63.5%)
CIE-LABlab(17.32, 13.52, -34.72)
CIE-LCHlch(17.32, 37.26, 291.28°)
OKLaboklab(29.21% -0.0091 -0.1)
OKLCHoklch(29.21% 0.1 264.8)
XYZxyz(2.9501, 2.3696, 10.6557)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12275D #5D4812
analogous
#124D5D #12275D #23125D
triadic
#12275D #5D1227 #275D12
tetradic
#12275D #5D124D #5D4812 #125D23
square
#12275D #5D124D #5D4812 #125D23
split-complementary
#12275D #5D2312 #4D5D12
monochromatic
#050B1A #08112A #12275D #1C3D90 #2652C4

Accessibility & contrast

On white

14.25
#12275D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#12275D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12275D
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12275D#FFFFFF#000000##FFFFFF
##12275D1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12275d;
/* rgb */ color: rgb(18, 39, 93);
/* oklch */ color: oklch(29.2% 0.100 264.8);
Tailwind
colors: {
  custom: {
    50: '#5d608b',
    500: '#12275d',
    950: '#000000',
  },
}
SCSS
$custom: #12275d;
$custom-light: #5d608b;
$custom-dark: #000000;
JSON
{
  "hex": "#12275d",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 93
  },
  "hsl": {
    "h": 223.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29208,
    "c": 0.10046,
    "h": 264.8
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#12275D
secondary
#957B35
accent
#BA3DEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12275D

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

Preview Lab → · Contrast checker → · Palette generator →

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