#1F238D#1F238D

#1F238D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.169 H 271.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#1F238D
RGBrgb(31, 35, 141)
HSLhsl(238, 64%, 34%)
HSVhsv(238, 78%, 55%)
CMYKcmyk(78%, 75.2%, 0%, 44.7%)
CIE-LABlab(21.64, 36.55, -58.45)
CIE-LCHlch(21.64, 68.93, 302.02°)
OKLaboklab(33.98% 0.0042 -0.1692)
OKLCHoklch(33.98% 0.169 271.4)
XYZxyz(5.9722, 3.4158, 25.5387)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F238D #8D891F
analogous
#1F5A8D #1F238D #521F8D
triadic
#1F238D #8D1F23 #238D1F
tetradic
#1F238D #8D1F5A #8D891F #1F8D52
square
#1F238D #8D1F5A #8D891F #1F8D52
split-complementary
#1F238D #8D521F #5A8D1F
monochromatic
#090A29 #14175B #1F238D #2A2FBF #4E53D8

Accessibility & contrast

On white

12.48
#1F238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F238D
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F238D#FFFFFF#000000##FFFFFF
##1F238D1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f238d;
/* rgb */ color: rgb(31, 35, 141);
/* oklch */ color: oklch(34.0% 0.169 271.4);
Tailwind
colors: {
  custom: {
    50: '#6f5faf',
    500: '#1f238d',
    950: '#000000',
  },
}
SCSS
$custom: #1f238d;
$custom-light: #6f5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f238d",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 237.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33984,
    "c": 0.16926,
    "h": 271.4
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#1F238D
secondary
#BBB74D
accent
#E141E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F238D

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

Preview Lab → · Contrast checker → · Palette generator →

#1F238D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva