#12295E#12295E

#12295E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.099 H 263.8°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#12295E
RGBrgb(18, 41, 94)
HSLhsl(222, 68%, 22%)
HSVhsv(222, 81%, 37%)
CMYKcmyk(80.9%, 56.4%, 0%, 63.1%)
CIE-LABlab(18.02, 12.46, -34.25)
CIE-LCHlch(18.02, 36.45, 290.00°)
OKLaboklab(29.77% -0.0108 -0.0986)
OKLCHoklch(29.77% 0.099 263.8)
XYZxyz(3.0621, 2.5223, 10.9130)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12295E #5E4712
analogous
#124F5E #12295E #21125E
triadic
#12295E #5E1229 #295E12
tetradic
#12295E #5E124F #5E4712 #125E21
square
#12295E #5E124F #5E4712 #125E21
split-complementary
#12295E #5E2112 #4F5E12
monochromatic
#050B1A #08132B #12295E #1C3F91 #2656C5

Accessibility & contrast

On white

13.96
#12295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#12295E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12295E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12295E#FFFFFF#000000##FFFFFF
##12295E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12295e;
/* rgb */ color: rgb(18, 41, 94);
/* oklch */ color: oklch(29.8% 0.099 263.8);
Tailwind
colors: {
  custom: {
    50: '#5d628c',
    500: '#12295e',
    950: '#000000',
  },
}
SCSS
$custom: #12295e;
$custom-light: #5d628c;
$custom-dark: #000000;
JSON
{
  "hex": "#12295e",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 221.842,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29765,
    "c": 0.09921,
    "h": 263.8
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#12295E
secondary
#967935
accent
#B63DEB
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #12295E

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

Preview Lab → · Contrast checker → · Palette generator →

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