#12275F#12275F

#12275F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.104 H 265.0°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#12275F
RGBrgb(18, 39, 95)
HSLhsl(224, 68%, 22%)
HSVhsv(224, 81%, 37%)
CMYKcmyk(81.1%, 58.9%, 0%, 62.7%)
CIE-LABlab(17.49, 14.38, -35.78)
CIE-LCHlch(17.49, 38.56, 291.89°)
OKLaboklab(29.39% -0.009 -0.1031)
OKLCHoklch(29.39% 0.104 265)
XYZxyz(3.0398, 2.4055, 11.1284)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12275F #5F4A12
analogous
#124E5F #12275F #23125F
triadic
#12275F #5F1227 #275F12
tetradic
#12275F #5F124E #5F4A12 #125F23
square
#12275F #5F124E #5F4A12 #125F23
split-complementary
#12275F #5F2312 #4E5F12
monochromatic
#050B1A #08122C #12275F #1C3C92 #2551C6

Accessibility & contrast

On white

14.18
#12275F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12275F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12275F#FFFFFF#000000##FFFFFF
##12275F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12275f;
/* rgb */ color: rgb(18, 39, 95);
/* oklch */ color: oklch(29.4% 0.104 265.0);
Tailwind
colors: {
  custom: {
    50: '#5d608d',
    500: '#12275f',
    950: '#000000',
  },
}
SCSS
$custom: #12275f;
$custom-light: #5d608d;
$custom-dark: #000000;
JSON
{
  "hex": "#12275f",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 95
  },
  "hsl": {
    "h": 223.636,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29388,
    "c": 0.10354,
    "h": 265
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#12275F
secondary
#977D36
accent
#BB3DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12275F

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

Preview Lab → · Contrast checker → · Palette generator →

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