#12295F#12295F

#12295F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.9% C 0.101 H 263.9°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#12295F
RGBrgb(18, 41, 95)
HSLhsl(222, 68%, 22%)
HSVhsv(222, 81%, 37%)
CMYKcmyk(81.1%, 56.8%, 0%, 62.7%)
CIE-LABlab(18.10, 12.89, -34.78)
CIE-LCHlch(18.10, 37.09, 290.34°)
OKLaboklab(29.85% -0.0107 -0.1002)
OKLCHoklch(29.85% 0.101 263.9)
XYZxyz(3.1072, 2.5403, 11.1508)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12295F #5F4812
analogous
#12505F #12295F #22125F
triadic
#12295F #5F1229 #295F12
tetradic
#12295F #5F1250 #5F4812 #125F22
square
#12295F #5F1250 #5F4812 #125F22
split-complementary
#12295F #5F2212 #505F12
monochromatic
#050B1A #08132C #12295F #1C3F92 #2555C6

Accessibility & contrast

On white

13.92
#12295F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#12295F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12295F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12295F#FFFFFF#000000##FFFFFF
##12295F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033061
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #12295f;
/* rgb */ color: rgb(18, 41, 95);
/* oklch */ color: oklch(29.9% 0.101 263.9);
Tailwind
colors: {
  custom: {
    50: '#5d628d',
    500: '#12295f',
    950: '#000000',
  },
}
SCSS
$custom: #12295f;
$custom-light: #5d628d;
$custom-dark: #000000;
JSON
{
  "hex": "#12295f",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 222.078,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29852,
    "c": 0.10075,
    "h": 263.9
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#12295F
secondary
#977A36
accent
#B73DEB
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12295F

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

Preview Lab → · Contrast checker → · Palette generator →

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