#12295B#12295B

#12295B is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.095 H 263.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#12295B
RGBrgb(18, 41, 91)
HSLhsl(221, 67%, 21%)
HSVhsv(221, 80%, 36%)
CMYKcmyk(80.2%, 54.9%, 0%, 64.3%)
CIE-LABlab(17.78, 11.17, -32.64)
CIE-LCHlch(17.78, 34.50, 288.89°)
OKLaboklab(29.51% -0.0112 -0.0939)
OKLCHoklch(29.51% 0.095 263.2)
XYZxyz(2.9300, 2.4695, 10.2177)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12295B #5B4412
analogous
#124E5B #12295B #20125B
triadic
#12295B #5B1229 #295B12
tetradic
#12295B #5B124E #5B4412 #125B20
square
#12295B #5B124E #5B4412 #125B20
split-complementary
#12295B #5B2012 #4E5B12
monochromatic
#050C1A #081228 #12295B #1C408E #2657C1

Accessibility & contrast

On white

14.06
#12295B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#12295B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12295B
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12295B#FFFFFF#000000##FFFFFF
##12295B1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092F5D
Deuteranopia (green-blind)
#00285A
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12295b;
/* rgb */ color: rgb(18, 41, 91);
/* oklch */ color: oklch(29.5% 0.095 263.2);
Tailwind
colors: {
  custom: {
    50: '#5c628a',
    500: '#12295b',
    950: '#000000',
  },
}
SCSS
$custom: #12295b;
$custom-light: #5c628a;
$custom-dark: #000000;
JSON
{
  "hex": "#12295b",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 91
  },
  "hsl": {
    "h": 221.096,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29507,
    "c": 0.09456,
    "h": 263.2
  },
  "luminance": 0.0247
}

Semantic roles & 50–950 ramp

primary
#12295B
secondary
#937635
accent
#B43EEA
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12295B

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

Preview Lab → · Contrast checker → · Palette generator →

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