#231F74#231F74

#231F74 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.140 H 276.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#231F74
RGBrgb(35, 31, 116)
HSLhsl(243, 58%, 29%)
HSVhsv(243, 73%, 45%)
CMYKcmyk(69.8%, 73.3%, 0%, 54.5%)
CIE-LABlab(18.36, 30.55, -48.02)
CIE-LCHlch(18.36, 56.92, 302.47°)
OKLaboklab(30.91% 0.0158 -0.1387)
OKLCHoklch(30.91% 0.14 276.5)
XYZxyz(4.3345, 2.5979, 16.7926)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231F74 #70741F
analogous
#1F4674 #231F74 #4E1F74
triadic
#231F74 #74231F #1F7423
tetradic
#231F74 #741F46 #70741F #1F744E
square
#231F74 #741F46 #70741F #1F744E
split-complementary
#231F74 #744E1F #46741F
monochromatic
#070618 #141244 #231F74 #322CA4 #4841CC

Accessibility & contrast

On white

13.82
#231F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#231F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231F74
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231F74#FFFFFF#000000##FFFFFF
##231F741.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #231f74;
/* rgb */ color: rgb(35, 31, 116);
/* oklch */ color: oklch(30.9% 0.140 276.5);
Tailwind
colors: {
  custom: {
    50: '#6a5b9d',
    500: '#231f74',
    950: '#000000',
  },
}
SCSS
$custom: #231f74;
$custom-light: #6a5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#231f74",
  "rgb": {
    "r": 35,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 242.824,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30912,
    "c": 0.13959,
    "h": 276.5
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#231F74
secondary
#A3A847
accent
#E147DA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #231F74

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

Preview Lab → · Contrast checker → · Palette generator →

#231F74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva