#12338D#12338D

#12338D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.154 H 264.4°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#12338D
RGBrgb(18, 51, 141)
HSLhsl(224, 77%, 31%)
HSVhsv(224, 87%, 55%)
CMYKcmyk(87.2%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.01, 24.93, -52.92)
CIE-LCHlch(25.01, 58.50, 295.23°)
OKLaboklab(36.29% -0.0151 -0.1533)
OKLCHoklch(36.29% 0.154 264.4)
XYZxyz(6.2393, 4.4186, 25.7182)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12338D #8D6C12
analogous
#12708D #12338D #2E128D
triadic
#12338D #8D1233 #338D12
tetradic
#12338D #8D1270 #8D6C12 #128D2E
square
#12338D #8D1270 #8D6C12 #128D2E
split-complementary
#12338D #8D2E12 #708D12
monochromatic
#040C20 #0B1F57 #12338D #1947C3 #3464E5

Accessibility & contrast

On white

11.15
#12338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#12338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12338D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12338D#FFFFFF#000000##FFFFFF
##12338D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #12338d;
/* rgb */ color: rgb(18, 51, 141);
/* oklch */ color: oklch(36.3% 0.154 264.4);
Tailwind
colors: {
  custom: {
    50: '#696aaf',
    500: '#12338d',
    950: '#000000',
  },
}
SCSS
$custom: #12338d;
$custom-light: #696aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#12338d",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 223.902,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36288,
    "c": 0.154,
    "h": 264.4
  },
  "luminance": 0.04419
}

Semantic roles & 50–950 ramp

primary
#12338D
secondary
#C19D39
accent
#C034F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #12338D

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

Preview Lab → · Contrast checker → · Palette generator →

#12338D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva