#12275B#12275B

#12275B is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.097 H 264.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#12275B
RGBrgb(18, 39, 91)
HSLhsl(223, 67%, 21%)
HSVhsv(223, 80%, 36%)
CMYKcmyk(80.2%, 57.1%, 0%, 64.3%)
CIE-LABlab(17.15, 12.66, -33.66)
CIE-LCHlch(17.15, 35.96, 290.61°)
OKLaboklab(29.03% -0.0093 -0.0969)
OKLCHoklch(29.03% 0.097 264.5)
XYZxyz(2.8626, 2.3347, 10.1953)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12275B #5B4612
analogous
#124C5B #12275B #22125B
triadic
#12275B #5B1227 #275B12
tetradic
#12275B #5B124C #5B4612 #125B22
square
#12275B #5B124C #5B4612 #125B22
split-complementary
#12275B #5B2212 #4C5B12
monochromatic
#050B1A #081128 #12275B #1C3D8E #2653C1

Accessibility & contrast

On white

14.31
#12275B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12275B
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12275B#FFFFFF#000000##FFFFFF
##12275B1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032E5D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12275b;
/* rgb */ color: rgb(18, 39, 91);
/* oklch */ color: oklch(29.0% 0.097 264.5);
Tailwind
colors: {
  custom: {
    50: '#5c608a',
    500: '#12275b',
    950: '#000000',
  },
}
SCSS
$custom: #12275b;
$custom-light: #5c608a;
$custom-dark: #000000;
JSON
{
  "hex": "#12275b",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 91
  },
  "hsl": {
    "h": 222.74,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29031,
    "c": 0.09737,
    "h": 264.5
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#12275B
secondary
#937835
accent
#B83EEA
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #12275B

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

Preview Lab → · Contrast checker → · Palette generator →

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