#12257E#12257E

#12257E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.151 H 267.0°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#12257E
RGBrgb(18, 37, 126)
HSLhsl(229, 75%, 28%)
HSVhsv(229, 86%, 49%)
CMYKcmyk(85.7%, 70.6%, 0%, 50.6%)
CIE-LABlab(19.87, 28.58, -51.95)
CIE-LCHlch(19.87, 59.29, 298.82°)
OKLaboklab(32.06% -0.0079 -0.1505)
OKLCHoklch(32.06% 0.151 267)
XYZxyz(4.6756, 2.9575, 20.0590)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12257E #7E6B12
analogous
#125B7E #12257E #35127E
triadic
#12257E #7E1225 #257E12
tetradic
#12257E #7E125B #7E6B12 #127E35
square
#12257E #7E125B #7E6B12 #127E35
split-complementary
#12257E #7E3512 #5B7E12
monochromatic
#04081B #0A1548 #12257E #1A35B4 #2A4AE1

Accessibility & contrast

On white

13.19
#12257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#12257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12257E
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12257E#FFFFFF#000000##FFFFFF
##12257E1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #12257e;
/* rgb */ color: rgb(18, 37, 126);
/* oklch */ color: oklch(32.1% 0.151 267.0);
Tailwind
colors: {
  custom: {
    50: '#665fa4',
    500: '#12257e',
    950: '#000000',
  },
}
SCSS
$custom: #12257e;
$custom-light: #665fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#12257e",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 229.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32061,
    "c": 0.15076,
    "h": 267
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#12257E
secondary
#B49E38
accent
#D136F2
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #12257E

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

Preview Lab → · Contrast checker → · Palette generator →

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